/** * * @return string */ public function my_props() { $props = parent::my_props(); if (($rows = $this->get_rows()) > 1) { // text area. $props['rows'] = $rows; unset($props['value']); } return $props; }
/** * @return array */ public function my_props() { if ($this->get_type() != self::CHOICE_CHECKBOX) { return parent::my_props(); } $out = array(); if ($this->get_name()) { $out['name'] = $this->get_name(); } return $out; }