コード例 #1
0
ファイル: InstallApp.php プロジェクト: kzfk/emlauncher
 public function getApp()
 {
     if ($this->app === null) {
         $this->app = ApplicationDb::retrieveByPK($this->getAppId());
     }
     return $this->app;
 }
コード例 #2
0
ファイル: actions.php プロジェクト: kzfk/emlauncher
 public function initialize()
 {
     if ($err = parent::initialize()) {
         return $err;
     }
     if (in_array($this->getAction(), array('new', 'create'))) {
         return null;
     }
     $id = mfwRequest::param('id');
     $this->app = ApplicationDb::retrieveByPK($id);
     if (!$this->app) {
         return $this->buildErrorPage('Not Found', array(self::HTTP_404_NOTFOUND));
     }
     return null;
 }