Exemplo n.º 1
0
 /**
  * Initializes the menu.
  */
 public function init()
 {
     $UserMenuMapper = new UserMenuMapper();
     $profilMapper = new UserMapper();
     $menu = $UserMenuMapper->getUserMenu();
     $menuLinks = $UserMenuMapper->getUserMenuSettingsLinks($this->getTranslator()->getLocale());
     $this->getView()->set('usermenu', $menu);
     $this->getView()->set('usermenusettingslinks', $menuLinks);
     $this->getView()->set('profil', $profilMapper->getUserById($this->getUser()->getId()));
     $this->getView()->set('galleryAllowed', $this->getConfig()->get('usergallery_allowed'));
 }
Exemplo n.º 2
0
 /**
  * Initializes the menu.
  */
 public function init()
 {
     $UserMenuMapper = new UserMenuMapper();
     $menu = $UserMenuMapper->getUserMenu();
     $this->getView()->set('usermenu', $menu);
 }