Exemple #1
0
 function __construct($parent, $id, $args = array())
 {
     // Defaults
     $args = array_merge(array('empty-to-show' => 1), $args);
     $this->special_args('empty-to-show', $args);
     if (!isset($args['class'])) {
         $args['class'] = '';
     }
     $args['class'] = trim($args['class'] . ' repeatable');
     if (isset($args['elements'])) {
         $this->orig_elements = $args['elements'];
     }
     parent::__construct($parent, $id, $args);
     $this->group_count = $this->empty_to_show;
     $this->add_elements($args['elements']);
 }
Exemple #2
0
 public function __construct($app, $element)
 {
     parent::__construct($app, $element);
     // set Fieldset name
     $this->name = JText::_('Variation');
 }
 public function __construct($children = [])
 {
     $this->children = $children;
     parent::__construct();
     return $this;
 }