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; }
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'); }
public function __construct($id, array $attributes = array(), $items = array()) { parent::__construct($id, $attributes); $this->setItems($items); }
public function __construct($id, $action = '/', array $attributes = array()) { $this->_exceptAttrMap = array('id', 'method', 'action', 'enctype'); $this->setAction($action); parent::__construct($id, $attributes); }