/** * Create new instance. */ public function __construct() { parent::__construct(); $this->addAttributeNames(array('name', 'cols', 'rows', 'wrap', 'title')); // some defaults $this->setRows(5); $this->setCols(60); }
/** * {@inheritDoc} */ public function getStringValue() { if ($this->isMultiValue()) { // only for multi values, to avoid serializing int values, etc... return serialize($this->getValue()); } return parent::getStringValue(); }
/** * Create new instance. */ public function __construct() { parent::__construct(); $this->addAttributeNames(array('size', 'maxlength', 'autocomplete', 'title', 'readonly')); }
/** * Overload to evaluate as boolean. * * @return boolean The value. */ public function getValue() { return Toolbox::asBoolean(parent::getValue()); }