protected function _getFormField() { $ret = new Kwf_Form_Field_MultiCheckbox(Kwf_Model_Abstract::getInstance('Kwc_Form_Field_MultiCheckbox_DataToValuesModel'), 'Value'); $ret->setName($this->getData()->componentId); $ret->setFieldLabel($this->getRow()->field_label); if ($this->getRow()->label_width) { $ret->setLabelWidth($this->getRow()->label_width); } $ret->setAllowBlank(!$this->getRow()->required); $ret->setHideLabel($this->getRow()->hide_label); $ret->setShowCheckAllLinks($this->getRow()->show_check_all_links); $ret->setOutputType($this->getRow()->output_type); $values = array(); foreach ($this->getRow()->getChildRows('Values') as $i) { $values[$ret->getName() . '_' . $i->id] = $i->value; } $ret->setValues($values); if ($this->getRow()->label_position_above) { $ret->setLabelPosition('above'); } return $ret; }
public function __construct($tableName = null, $title = null) { parent::__construct($tableName, $title); }