Example #1
0
 public function onAddedTo(Row $row)
 {
     $row->setCssClass('fieldset radios');
     if ($row->getTemplate() == Row::DEFAULT_TEMPLATE) {
         $row->setTemplate('fzyform/form/element/radio/row.phtml');
     }
 }
Example #2
0
 public function addRow(Row $row)
 {
     $row->setParentForm($this);
     // get the fieldset
     $fieldset = $this->getChild($row->getFieldSetName());
     // no implicit fieldsets
     //		if (empty($fieldset)) {
     //			$fieldset = new FieldSet(array('name' => $row->getFieldSetName()));
     //			$this->addChild($fieldset);
     //		}
     $fieldset->addChild($row);
     // map formname to which fieldset it is in (for convenience)
     $this->rowToFieldset[$row->getName()] = $fieldset->getName();
     return $this;
 }