Ejemplo n.º 1
0
 function __construct($id = NULL)
 {
     parent::__construct($id);
     if (!$this->id) {
         $this->fields['status']['editable'] = false;
     }
 }
Ejemplo n.º 2
0
 public function __construct($id = 0)
 {
     if (!$GLOBALS['system']->featureEnabled('SERVICEDETAILS')) {
         // WHen the SERVICEDETAILS feature is not enabled, PERM_EDITSERVICE
         // does not exist, so nobody has access!
         $this->_save_permission_level = PERM_BULKSERVICE;
     }
     return parent::__construct($id);
 }
Ejemplo n.º 3
0
 function __construct($id = 0)
 {
     parent::__construct($id);
     if (!empty($_REQUEST['categoryid'])) {
         $_SESSION['service_comp_categoryid'] = $_REQUEST['categoryid'];
     }
     if (empty($this->id) && !empty($_SESSION['service_comp_categoryid'])) {
         $this->values['categoryid'] = array_get($_SESSION, 'service_comp_categoryid');
     }
 }
 public function __construct($id = NULL)
 {
     parent::__construct($id);
     if (!empty($_REQUEST['parent_category'])) {
         $_SESSION['group_categoryid'] = $_REQUEST['parent_category'];
     } else {
         if (!empty($_SESSION['group_categoryid'])) {
             $this->values['parent_category'] = array_get($_SESSION, 'group_categoryid');
         }
     }
 }
Ejemplo n.º 5
0
 function __construct($id = NULL)
 {
     parent::__construct($id);
     if (!$this->id) {
         $this->fields['is_archived']['editable'] = false;
     }
     if (!empty($_REQUEST['categoryid'])) {
         $_SESSION['group_categoryid'] = $_REQUEST['categoryid'];
     } else {
         if (empty($this->id) && !empty($_SESSION['group_categoryid'])) {
             $this->values['categoryid'] = array_get($_SESSION, 'group_categoryid');
         }
     }
 }
Ejemplo n.º 6
0
 function __construct($id = NULL)
 {
     parent::__construct($id);
     if (!$this->id) {
         $this->fields['active']['editable'] = false;
     }
     if (!empty($_REQUEST['congregationid'])) {
         $_SESSION['role_congregationid'] = $_REQUEST['congregationid'];
     } else {
         if (empty($id) && !empty($_SESSION['role_congregationid'])) {
             $this->values['congregationid'] = array_get($_SESSION, 'role_congregationid');
         }
     }
 }
Ejemplo n.º 7
0
 public function __construct($id = NULL)
 {
     parent::__construct($id);
 }