コード例 #1
0
ファイル: identifiable.php プロジェクト: walteraries/anahita
 /**
  * (non-PHPdoc)
  * @see ComBaseControllerBehaviorIdentifiable::fetchEntity()
  */
 public function fetchEntity(KCommandContext $context)
 {
     if ($this->isDispatched() && $this->getRequest()->alias) {
         $this->setIdentifiableKey('alias');
     }
     return parent::fetchEntity($context);
 }
コード例 #2
0
ファイル: identifiable.php プロジェクト: stonyyi/anahita
 /**
  * (non-PHPdoc).
  *
  * @see ComBaseControllerBehaviorIdentifiable::fetchEntity()
  */
 public function fetchEntity(KCommandContext $context)
 {
     if ($this->isDispatched()) {
         $username = $this->getRequest()->username;
         if ($username && $this->getRequest()->get('layout') != 'add') {
             $this->setIdentifiableKey('username');
         }
     }
     return parent::fetchEntity($context);
 }