示例#1
0
 /**
  * @param \DK\Menu\Menu $menu
  * @param string $title
  * @param string $target
  * @param array $parameters
  */
 public function __construct(Menu $menu, $title, $target, array $parameters = array())
 {
     parent::__construct();
     $this->menu = $menu;
     $this->setTitle($title);
     $this->setTarget($target);
     $this->setParameters($parameters);
 }
示例#2
0
 /**
  * @param \Nette\Security\User $user
  * @param string $name
  */
 public function __construct(User $user, $name)
 {
     parent::__construct(null, $name);
     $this->user = $user;
 }