r95307 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95306‎ | r95307 | r95308 >
Date:14:08, 23 August 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
changing loadAllFromPageSchema() to use the modified object name in Page Schema extension.
Modified paths:
  • /trunk/extensions/SemanticDrilldown/includes/SD_Filter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Filter.php
@@ -26,9 +26,9 @@
2727 $field_all = $template->getFields();
2828 foreach( $field_all as $fieldObj ) { //for each Field, retrieve smw properties and fill $prop_name , $prop_type
2929 $f = new SDFilter();
30 - $object_values = $fieldObj->getObject('Filter');//this returns an array with property values filled
 30+ $object_values = $fieldObj->getObject('semanticdrilldown_Filter');//this returns an array with property values filled
3131 $sd_array = $object_values['sd'];
32 - $smw_array = $fieldObj->getObject('Property'); //this returns an array with property values filled
 32+ $smw_array = $fieldObj->getObject('semanticmediawiki_Property'); //this returns an array with property values filled
3333 $prop_array = $smw_array['smw'];
3434 $f->name = $sd_array['Label'];
3535 $f->property = $prop_array['name'];