Example #1
0
 public function loadState(array $params)
 {
     parent::loadState($params);
     if (isset($params['key'])) {
         $this->resetUser = $this->userRepository->findOneBy(array('resetKey' => $params['key']));
         if ($this->resetUser === null) {
             $this->onError($this, new ResetKeyNotFoundException());
         }
     }
 }
Example #2
0
 public function loadState(array $params)
 {
     if (isset($params['dirId'])) {
         $this->dir = $this->dirRepository->find($params['dirId']);
     } elseif ($this->root) {
         $this->dir = $this->root;
     }
     if (isset($params['fileId'])) {
         $this->file = $this->fileRepository->find($params['fileId']);
         $this->dir = $this->file->getParent();
     }
     parent::loadState($params);
 }
Example #3
0
 /**
  * @param mixed[] $params
  */
 public function loadState(array $params)
 {
     $this->sideComponent = array_key_exists('sideComponent', $params) ? $params['sideComponent'] : $this->sessionSection->sideComponent;
     parent::loadState($params);
 }