checkUserLog(); $this->getUser(); $vars['lists'] = $this->getUserShoppingLists(); return $vars; } private function getUserShoppingLists() { return $this->user->getShoppingLists(); } protected function checkUserLog() { if ($this->checkUserLog) { if (!$this->getUser()) { redirection('LOGIN'); } } } private function getUser() { if ($this->user) { return $this->user; } return $this->user = \User::getCurrentUser(); } public function getBreadcrumbs() { return getReturnNavigation(-1, 'USER', [$this->getTitle()]); } }