예제 #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
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addAttributeNames(array('size', 'multiple', 'title'));
     $this->options = array();
     // defaults
     $this->set('style', 'select');
 }
예제 #3
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     // defaults
     $this->set('style', 'checkbox');
     // use underscore as zc sanitize converts '.' to '_'
     $this->set('label_true', 'True');
     $this->set('label_false', 'False');
 }
예제 #4
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addAttributeNames(array('size', 'maxlength', 'autocomplete', 'title', 'readonly'));
 }