r93043 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93042‎ | r93043 | r93044 >
Date:04:27, 25 July 2011
Author:yaron
Status:deferred
Tags:
Comment:
SFTemplateField::create() now takes in four arguments
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -209,11 +209,9 @@
210210 $field_count++;
211211 $sf_array = $fieldObj->getObject('FormInput');//this returns an array with property values filled
212212 $form_input_array = $sf_array['sf'];
213 - $field_t = SFTemplateField::create( $fieldObj->getName(), $fieldObj->getLabel() );
214213 $smw_array = $fieldObj->getObject('Property'); //this returns an array with property values filled
215214 $prop_array = $smw_array['smw'];
216 - $field_t->semantic_property = $prop_array['name'];
217 - $field_t->is_list = $fieldObj->isList();
 215+ $field_t = SFTemplateField::create( $fieldObj->getName(), $fieldObj->getLabel(), $prop_array['name'], $fieldObj->isList() );
218216 $template_fields[] = $field_t;
219217 }
220218 $template_text = SFTemplateField::createTemplateText( $template->getName(), $template_fields, null, $psSchemaObj->categoryName, null, null, null );