예제 #1
0
파일: ApiKey.php 프로젝트: eventsd/eventsd
 /**
  * @return Application|False
  */
 public function get_application()
 {
     if (!$this->_application) {
         $this->_application = Application::search()->where('application_id', $this->application_id)->execOne();
     }
     return $this->_application;
 }
예제 #2
0
파일: User.php 프로젝트: eventsd/eventsd
 /**
  * @return Array[Application]
  */
 public function get_applications()
 {
     if (!$this->_applications) {
         $this->_applications = Application::search()->where('user_id', $this->user_id)->exec();
     }
     return $this->_applications;
 }