コード例 #1
0
 /** @return AclFactory */
 public function f()
 {
     if ($this->_factory === null) {
         $this->_factory = AclFactory::get($this->app);
     }
     return $this->_factory;
 }
コード例 #2
0
ファイル: AclPage.php プロジェクト: cyantree/grout-acl-module
 public function parseTask()
 {
     $f = AclFactory::get($this->app);
     $this->setResult($f->templates()->load($f->config()->loginTemplate, array('url' => $this->task->url, 'name' => $this->task->vars->get('name'), 'username' => $this->task->request->post->get('username'), 'error' => $this->task->request->method == 'POST'), $f->config()->baseTemplate)->content, null, ResponseCode::CODE_403);
 }
コード例 #3
0
 public function parseTask()
 {
     $f = AclFactory::get($this->app);
     $f->sessionData()->logout();
     $this->setResult($f->templates()->load($f->config()->logoutTemplate, null, $f->config()->baseTemplate)->content);
 }