src/Control/tryUser/TryUser.php
public function set(int $id): bool
	{
		if (!$this->isAllowed()) {
			return false;
		}
		$hash = $this->hasher->hash($id);
		$uniqid = uniqid();
		$this->session->setExpiration('5 minutes');
		$this->session->$uniqid = $hash;
		$this->id = $uniqid;
		$this->presenter->redirect($this->redirect);
		return true;
	}
public function set(int $id): bool
	{
		if (!$this->isAllowed()) {
			return false;
		}
		$hash = $this->hasher->hash($id);
		$uniqid = uniqid();
		$this->session->setExpiration('5 minutes');
		$this->session->$uniqid = $hash;
		$this->id = $uniqid;
		$this->presenter->redirect($this->redirect);
		return true;
	}
public function set ( int $ id ) : bool { if ( ! $ this -> isAllowed ( ) ) { return false ; } $ hash = $ this -> hasher -> hash ( $ id ) ; $ uniqid = uniqid ( ) ; $ this -> session -> setExpiration ( '5 minutes' ) ; $ this -> session -> $ uniqid = $ hash ; $ this -> id = $ uniqid ; $ this -> presenter -> redirect ( $ this -> redirect ) ; return true ; }
Nastavi testovaci ucet a presmeruje
@param int $id
@return bool pokud uzivatel nema prava k teto metode, vrati false
@throws AbortException
Nastavi testovaci ucet a presmeruje