Esempio n. 1
0
 /**
  * @param string $title
  * @param string $presenter
  * @param string $action
  * @param array $parameters
  * @param ItemFactory $itemFactory
  * @param Item|null $parent
  */
 function __construct($title, $presenter, $action, array $parameters, ItemFactory $itemFactory, $parent = null)
 {
     parent::__construct($itemFactory);
     $this->action = $action;
     $this->presenter = $presenter;
     $this->parent = $parent;
     $this->title = $title;
     $this->parameters = $parameters;
     $this->name = Util::createName($presenter, $action, $parameters);
 }
 function __construct(array $data, ItemFactory $itemFactory)
 {
     parent::__construct($itemFactory);
     $this->setData($data);
 }
Esempio n. 3
0
 /**
  * @param Item[] $items
  * @param Item $defaultItem
  */
 function __construct(array $items, Item $defaultItem)
 {
     parent::__construct(new ItemFactory());
     $this->items = $items;
     $this->defaultItem = $defaultItem;
 }