private function getCurrentProjectData()
 {
     $session = new \RKA\Session();
     $currentProjectID = intval($session->get('currentProject'));
     if ($currentProjectID > 0) {
         $this->db->where('projectID', $currentProjectID);
         $this->currentProjectArray = $this->db->getOne('projects', 'projectURL');
     } else {
         $this->db->where('projectDefault', '1');
         $this->currentProjectArray = $this->db->getOne('projects', 'projectID,projectURL');
         if ($this->db->count == 0) {
             $this->db->orderBy('projectID', 'ASC');
             $this->currentProjectArray = $this->db->getOne('projects', 'projectID,projectURL');
         } else {
         }
         $session->set('currentProject', $this->currentProjectArray['projectID']);
     }
 }
Ejemplo n.º 2
0
 public function userProfile()
 {
     $session = new \RKA\Session();
     return $session->get('auth-identity');
 }