Example #1
0
 protected function get_children()
 {
     global $core;
     $ns = $this->module->flat_id;
     return array_merge(parent::get_children(), array("local[{$ns}.scope]" => $this->create_control_scope(), "local[{$ns}.limits.home]" => new Text(array(Form::LABEL => 'limits_home', Element::DEFAULT_VALUE => 5)), "local[{$ns}.limits.list]" => new Text(array(Form::LABEL => 'limits_list', Element::DEFAULT_VALUE => 10))));
 }
Example #2
0
 protected function get_children()
 {
     global $core;
     $ns = $this->module->flat_id;
     return array_merge(parent::get_children(), array("local[{$ns}.form_id]" => new \Icybee\Modules\Forms\PopForm('select', array(Form::LABEL => 'Formulaire', Element::GROUP => 'primary', Element::REQUIRED => true, Element::DESCRIPTION => "Il s'agit du formulaire à utiliser pour la\n\t\t\t\t\t\tsaisie des commentaires.")), "local[{$ns}.default_status]" => new Element('select', array(Form::LABEL => 'Status par défaut', Element::OPTIONS => array('pending' => 'Pending', 'approved' => 'Approuvé'), Element::DESCRIPTION => "Il s'agit du status par défaut pour les nouveaux\n\t\t\t\t\t\tcommentaires.")), "local[{$ns}.delay]" => new Text(array(Form::LABEL => 'Intervale entre deux commentaires', Text::ADDON => 'minutes', Element::DEFAULT_VALUE => 3, Element::GROUP => 'spam', 'size' => 3, 'class' => 'measure'))));
 }