/**
  * @inheritDoc
  */
 public function __construct(AbsCmpFields $component, $name)
 {
     if (!preg_match(IfcInputConstants::INPUT_NAME_REGEX, $name)) {
         throw new \InvalidArgumentException('Invalid parameter $name="' . $name . '" in ' . __METHOD__);
     }
     if ($component->getMenuPage()->getInputFieldByName($name)) {
         throw new \InvalidArgumentException('A field with the $name="' . $name . '" already registered');
     }
     parent::__construct($component);
     $this->name = $name;
     $this->id = $name;
     $this->menuPageComponent->getMenuPage()->registerField($this);
 }
 public function __construct(CnrTabs $container, $title, $icon = '')
 {
     $this->container = $container;
     $this->title = $title;
     $this->icon = $icon;
     parent::__construct($container, CnrTabs::CNR_TAB);
 }
Beispiel #3
0
 /**
  * @return \Pan\MenuPages\Templates\Twig
  * @author Panagiotis Vagenas <*****@*****.**>
  * @since  1.0.0
  */
 public function getTwig()
 {
     return $this->menuPageComponent->getTwig();
 }