/** * Class constructor * * @param string $id * @param string $action * @param string $method * @param array $config */ public function __construct($id, $action = '', $method = 'get', $config = array()) { parent::__construct($id, $config); $this->setAction($action); $this->setMethod($method); if (isset($config['redirects']) && is_array($config['redirects'])) { $this->_redirects = $config['redirects']; } $this->addWidget(new One_Form_Widget_Token()); $captcha = $this->getCfg('captcha'); if ($captcha) { // @todo: should already be added before we call the render() function... $this->addWidget(new One_Form_Widget_Captcha()); } }
/** * Class constructor * * @param string $id * @param array $config */ public function __construct($id, array $config = array()) { parent::__construct($id, $config); }