Exemple #1
0
 /**
  * @expectedException \Nette\InvalidStateException
  */
 public function testPermissionsCanNotBeRestrictedAfterAccessRestriction()
 {
     $node = new Node();
     $node->restrictAccess('jedi');
     $node->restrictPermissions('magic', 'controls');
 }
 public function render()
 {
     $view = $this->tree->render(new \PK\Navigation\NodeView());
     $this->template->items = $view->children;
     $this->template->setFile(__DIR__ . '/NavigationControl.latte')->render();
 }
 public function render()
 {
     $view = $this->tree->renderActiveNodes(new \PK\Navigation\NodeView());
     $this->template->breadcrumbs = $view->children;
     $this->template->setFile(__DIR__ . '/BreadcrumbControl.latte')->render();
 }