public function __construct($id = null)
 {
     parent::__construct();
     $this->_CI->load->model('Do_module');
     if (isset($id)) {
     }
     $this->_setById($id);
 }
 public function __construct()
 {
     parent::__construct();
     $this->_CI =& get_instance();
     $this->_CI->load->model('Do_hotel');
     $this->_portfolio = new Portfolio();
     $this->finances = new RevenueColl();
     $this->_revFilters = new FilterCollection();
     $this->_tags = new TagCollection();
     $this->_isRemoved = '0';
 }
 public function __construct($id = null)
 {
     parent::__construct();
     $this->_CI->load->model('Do_usergroup');
     if (isset($id)) {
         $result = $this->_CI->Do_usergroup->getById($id);
         if ($result) {
             $this->setByData($result);
         } else {
             $this->errors['init'] = "Error encountered initializing with id: " . $id;
         }
     }
 }
 public function __construct($usrgrpId = 0, $moduleId = 0, Accessright $accessrights = null)
 {
     parent::__construct();
     $this->_CI->load->model('Do_userright');
     //var_dump($usrgrpId);var_dump($moduleId);var_dump($accessrights);die();
     if (!empty($usrgrpId) && !empty($moduleId) && !isset($accessrights)) {
         $this->_setByUsergrpModule($usrgrpId, $moduleId);
     } else {
         $this->_usergroup = $usrgrpId;
         $this->_module = $moduleId;
         if (isset($accessrights)) {
             $this->_accessright = $accessrights;
         } else {
             $this->_accessright = new Accessright();
         }
     }
 }