r26336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26335‎ | r26336 | r26337 >
Date:00:48, 3 October 2007
Author:yaron
Status:old
Tags:
Comment:
setSemanticData() takes in "is_list" argument
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_TemplateField.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
@@ -12,10 +12,10 @@
1313 var $label;
1414 var $semantic_field;
1515 var $semantic_field_call;
16 - var $is_list;
1716 var $is_relation;
1817 var $field_type;
1918 var $possible_values;
 19+ var $is_list;
2020
2121 function newWithValues($name, $label) {
2222 $f = new SFTemplateField();
@@ -26,10 +26,11 @@
2727
2828 // setSemanticData() - called when template is parsed during the creation
2929 // of a form
30 - function setSemanticData($semantic_field, $is_relation) {
 30+ function setSemanticData($semantic_field, $is_relation, $is_list) {
3131 $this->semantic_field = str_replace('\\', '', $semantic_field);
3232 $this->is_relation = $is_relation;
3333 $this->possible_values = array();
 34+ $this->is_list = $is_list;
3435 // set field type if it's an attribute
3536 // HACK - also set type (to 'relation') if it's a relation
3637 if ($this->is_relation) {

Status & tagging log