Esempio n. 1
0
 /**
  * (non-PHPdoc)
  * @see ComBaseControllerBehaviorIdentifiable::fetchEntity()
  */
 public function fetchEntity(KCommandContext $context)
 {
     if ($this->isDispatched() && $this->getRequest()->alias) {
         $this->setIdentifiableKey('alias');
     }
     return parent::fetchEntity($context);
 }
Esempio n. 2
0
 /**
  * (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);
 }