コード例 #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;
 }