diff --git a/web/lib/MRBS/Form/Element.php b/web/lib/MRBS/Form/Element.php index 9a1d5da8f8..543bbbe097 100644 --- a/web/lib/MRBS/Form/Element.php +++ b/web/lib/MRBS/Form/Element.php @@ -1,5 +1,5 @@ setText($legend); @@ -38,9 +38,9 @@ public function addLegend($legend) $element->addElement($legend); } } - + $this->addElement($element); return $this; } - -} \ No newline at end of file + +} diff --git a/web/lib/MRBS/Form/ElementImg.php b/web/lib/MRBS/Form/ElementImg.php index fadf08ac08..73cbc2ed08 100644 --- a/web/lib/MRBS/Form/ElementImg.php +++ b/web/lib/MRBS/Form/ElementImg.php @@ -1,13 +1,13 @@ setAttribute('type', 'text'); } - -} \ No newline at end of file + +} diff --git a/web/lib/MRBS/Form/ElementInputCheckbox.php b/web/lib/MRBS/Form/ElementInputCheckbox.php index 6fd640b88d..c9bd989434 100644 --- a/web/lib/MRBS/Form/ElementInputCheckbox.php +++ b/web/lib/MRBS/Form/ElementInputCheckbox.php @@ -1,5 +1,5 @@ setAttribute('type', 'checkbox'); } - - + + public function setChecked($checked=true) { if ($checked) @@ -22,8 +22,8 @@ public function setChecked($checked=true) { $this->removeAttribute('checked'); } - + return $this; } - -} \ No newline at end of file + +} diff --git a/web/lib/MRBS/Form/ElementInputDatalist.php b/web/lib/MRBS/Form/ElementInputDatalist.php index 086f79df2f..32cd5042d8 100644 --- a/web/lib/MRBS/Form/ElementInputDatalist.php +++ b/web/lib/MRBS/Form/ElementInputDatalist.php @@ -1,12 +1,12 @@ setAttributes(array('type' => 'text', 'list' => $list_id)); - + $datalist = new ElementDatalist(); $datalist->setAttribute('id', $list_id); - + $this->next($datalist); } - - + + public function addDatalistOptions(array $options, $associative=null) - { + { // Put a