Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * Create form.
  *
  * @param AbstractModel|null $entity Entity object.
  */
 public function __construct(AbstractModel $entity = null)
 {
     parent::__construct();
     if (!$entity) {
         $entity = new Role();
     }
     $this->addEntity($entity);
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }
Ejemplo n.º 5
0
 /**
  * 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();
 }