public function initialize() { $err = parent::initialize(); if ($err) { return $err; } $this->repolist = RepositoryDb::selectAll(); $this->repolist->sortByName(); }
public function initialize() { if ($err = parent::initialize()) { return $err; } if ($this->login_user) { // ログイン済みならTOPに飛ばす return $this->redirect('/'); } $this->config = Config::get('login'); return null; }
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; }
public function initialize() { if ($this->action === 'install' && mfwRequest::has('token')) { // token付きインストールリンクの場合, token情報のみで認証する. return $this->initializeByInstallToken(mfwRequest::param('token')); } if ($err = parent::initialize()) { return $err; } $id = mfwRequest::param('id'); $this->package = PackageDb::retrieveByPK($id); if (!$this->package) { return $this->buildErrorPage('Not Found', array(self::HTTP_404_NOTFOUND)); } $this->app = $this->package->getApplication(); return null; }