Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_validateAdmin();
     $this->roomHandler = new Dura_Model_RoomHandler();
     $this->roomModels = $this->roomHandler->loadAll();
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->_validateUser();
     if (Dura_Class_RoomSession::isCreated()) {
         $this->id = Dura_Class_RoomSession::get('id');
     } else {
         $this->id = Dura::post('id');
     }
     if (!$this->id) {
         Dura::redirect('lounge');
     }
     $this->roomHandler = new Dura_Model_RoomHandler();
     $this->roomModel = $this->roomHandler->load($this->id);
     if (!$this->roomModel) {
         Dura_Class_RoomSession::delete();
         Dura::trans(t("Room not found.", 'lounge'));
     }
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->icons = Dura_Class_Icon::getIcons();
     unset($this->icons['admin']);
 }