public function __construct($parent, $name, $userId) { parent::__construct($parent, $name); $this->userId = $userId; $this->sessionSection = $this->presenter->context->session->getSection('structureManager'); $this->sessionSection->labelMode = 'admin'; }
public function __construct($parent, $name) { parent::__construct($parent, $name); $this->userId = $this->getPresenter()->getUser()->getId(); }