Пример #1
0
 /**
  * Constructor
  * @param        $title
  * @param        $modid
  * @param        $permname
  * @param        $permdesc
  * @param string $url
  * @param bool   $anonymous
  */
 public function __construct($title, $modid, $permname, $permdesc, $url = '', $anonymous = true)
 {
     parent::__construct($title, 'groupperm_form', XOOPS_URL . '/modules/system/admin/groupperm.php', 'post');
     $this->_modid = (int) $modid;
     $this->_permName = $permname;
     $this->_permDesc = $permdesc;
     $this->addElement(new XoopsFormHidden('modid', $this->_modid));
     $this->addElement(new XoopsFormHiddenToken($permname));
     if ($url != '') {
         $this->addElement(new XoopsFormHidden('redirect_url', $url));
     }
     $this->_showAnonymous = $anonymous;
 }
Пример #2
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct('', '', '');
 }