/** * Constructor */ public function __construct($title, $modid, $permname, $permdesc, $url = "") { parent::__construct($title, 'groupperm_form', ICMS_URL . '/modules/system/admin/groupperm.php', 'post'); $this->_modid = (int) $modid; $this->_permName = $permname; $this->_permDesc = $permdesc; $this->addElement(new icms_form_elements_Hidden('modid', $this->_modid)); if ($url != "") { $this->addElement(new icms_form_elements_Hidden('redirect_url', $url)); } }
public function __construct($title, $name, $action, $method = "post", $addtoken = false) { parent::__construct($title, $name, $action, $method, $addtoken); $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_elements_Button', sprintf(_CORE_REMOVE_IN_VERSION, '1.4')); }