Example #1
0
 /**
  * Contructor
  *
  * @param array $params
  * @return RightsPage
  */
 function RightsPage(&$params)
 {
     $this->cbxNames = array('add' => array('mask' => 'A', 'rightName' => 'add'), 'edt' => array('mask' => 'E', 'rightName' => 'edit'), 'del' => array('mask' => 'D', 'rightName' => 'delete'), 'lst' => array('mask' => 'S', 'rightName' => 'list'), 'exp' => array('mask' => 'P', 'rightName' => 'export'), 'imp' => array('mask' => 'I', 'rightName' => 'import'), 'adm' => array('mask' => 'M'));
     // copy properties to object
     //RunnerApply($this, $params);
     parent::RunnerPage($params);
     //fill session variables
     $this->setSessionVariables();
     // Set language params, if have more than one language
     $this->setLangParams();
     // get permissions
     $this->permis[$this->tName] = $this->getPermissions();
     $this->is508 = isEnableSection508();
     $this->DPOrderTables($this->nonAdminTablesArr);
     $this->fillGroupsArr();
 }
Example #2
0
 /**
  * Contructor
  *
  * @param array $params
  * @return RightsPage
  */
 function RightsPage(&$params)
 {
     // copy properties to object
     parent::RunnerPage($params);
     $this->permissionNames["A"] = true;
     $this->permissionNames["D"] = true;
     $this->permissionNames["E"] = true;
     $this->permissionNames["S"] = true;
     $this->permissionNames["P"] = true;
     $this->permissionNames["I"] = true;
     $this->permissionNames["M"] = true;
     $this->cbxNames = array('add' => array('mask' => 'A', 'rightName' => 'add'), 'edt' => array('mask' => 'E', 'rightName' => 'edit'), 'del' => array('mask' => 'D', 'rightName' => 'delete'), 'lst' => array('mask' => 'S', 'rightName' => 'list'), 'exp' => array('mask' => 'P', 'rightName' => 'export'), 'imp' => array('mask' => 'I', 'rightName' => 'import'), 'adm' => array('mask' => 'M'));
     // Set language params, if have more than one language
     $this->setLangParams();
     $this->sortTables();
     $this->fillGroupsArr();
 }