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