/** * Create form. * * @param array $eventsData Control data. * @param string $type Package type. * @param string $link Back link. */ public function __construct($eventsData, $type, $link = 'admin-packages') { $this->_eventsData = $eventsData; $this->_type = $type; $this->_link = $link; parent::__construct(); }
/** * Create form. * * @param AbstractModel|null $entity Entity object. */ public function __construct(AbstractModel $entity = null) { parent::__construct(); if (!$entity) { $entity = new Role(); } $this->addEntity($entity); }
/** * Create form. * * @param AbstractModel $entity Entity object. */ public function __construct(AbstractModel $entity = null) { $this->_currentPageObject = $entity; parent::__construct(); if (!$entity) { $entity = new Page(); } $this->addEntity($entity); }
/** * Create form. * * @param AbstractModel $entity Entity object. */ public function __construct(AbstractModel $entity = null) { parent::__construct(); if (!$entity) { $entity = new LanguageTranslation(); $entity->checked = true; } $this->addEntity($entity); }
/** * Form constructor. * * @param Package $package Package object. * @param null|array $exclude Exclude data. */ public function __construct($package, $exclude = null) { $this->_package = $package; $this->_exclude = $exclude; parent::__construct(); }