Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | */ |
16 | 16 | public static function createPageSchemasObject( $objectName, $xmlForField, &$object ) { |
17 | 17 | $sdarray = array(); |
18 | | - if ( $objectName == "Filter" ) { |
| 18 | + if ( $objectName == "semanticdrilldown_Filter" ) { |
19 | 19 | foreach ( $xmlForField->children() as $tag => $child ) { |
20 | 20 | if ( $tag == $objectName ) { |
21 | 21 | foreach ( $child->children() as $prop => $value) { |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | foreach( $field_all as $field ) { |
71 | 71 | $html_text .= '<fieldset style="background: #FDD;"><legend>Filter</legend>'; |
72 | 72 | $field_count++; |
73 | | - $sd_array = $field->getObject('Filter');//this returns an array with property values filled |
| 73 | + $sd_array = $field->getObject('semanticdrilldown_Filter');//this returns an array with property values filled |
74 | 74 | $filter_array = $sd_array['sd']; |
75 | 75 | $html_text .= '<p>'.$name_label.' <input size="25" name="sd_filter_name_starter" value="'.$filter_array['Label'].'" ></p>'; |
76 | 76 | $html_text .= '<p><input type="radio" name="sd_values_source_starter" checked value="property">'. |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | $xml_text_array = array(); |
189 | 189 | foreach ( $wgRequest->getValues() as $var => $val ) { |
190 | 190 | if(substr($var,0,15) == 'sd_filter_name_'){ |
191 | | - $Xmltext .= '<semanticdrilldown:Filter>'; |
| 191 | + $Xmltext .= '<semanticdrilldown_Filter>'; |
192 | 192 | $templateNum = substr($var,15,1); |
193 | 193 | $Xmltext .= '<Label>'.$val.'</Label>'; |
194 | 194 | }else if(substr($var,0,17) == 'sd_values_source_'){ |
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | } |
214 | 214 | }else if( substr($var,0,14) == 'sd_input_type_'){ |
215 | 215 | $Xmltext .= '<InputType>'.$val.'</InputType>'; |
216 | | - $Xmltext .= '</semanticdrilldown:Filter>'; |
| 216 | + $Xmltext .= '</semanticdrilldown_Filter>'; |
217 | 217 | $xml_text_array[] = $Xmltext; |
218 | 218 | $Xmltext = ''; |
219 | 219 | } |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | */ |
300 | 300 | public static function parseFieldElements( $field_xml, &$text_object ) { |
301 | 301 | foreach ( $field_xml->children() as $tag => $child ) { |
302 | | - if ( $tag == "Filter" ) { |
| 302 | + if ( $tag == "semanticdrilldown_Filter" ) { |
303 | 303 | $text = ""; |
304 | 304 | $text = PageSchemas::tableMessageRowHTML( "paramAttr", "SemanticDrillDown", (string)$tag ); |
305 | 305 | foreach ( $child->children() as $prop => $value) { |