Example #1
0
 public function __construct(Miao_Form_Control $prototype, array $values = array())
 {
     $this->setPrototype(clone $prototype);
     $this->setValue($values);
     parent::__construct($this->_prototype->getName());
     $this->_label = $this->_prototype->_label;
     $this->_attributes = $this->_prototype->_attributes;
 }
Example #2
0
 public function __construct($name, array $attributes = array(), $url = null)
 {
     if (empty($url)) {
         $url = '/?_prefix=Miao_Office&_action=KCaptcha';
     }
     $this->_url = $url;
     parent::__construct($name, $attributes);
     $this->addValidator('KCaptcha');
 }
Example #3
0
 public function __construct($id, array $attributes = array(), $items = array())
 {
     parent::__construct($id, $attributes);
     $this->setItems($items);
 }
Example #4
0
 public function __construct($id, $action = '/', array $attributes = array())
 {
     $this->_exceptAttrMap = array('id', 'method', 'action', 'enctype');
     $this->setAction($action);
     parent::__construct($id, $attributes);
 }