Example #1
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'))));
 }
Example #2
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 #3
0
 protected function lazy_get_children()
 {
     $ns = $this->module->flat_id;
     return array_merge(parent::lazy_get_children(), ["local[{$ns}.default_editor]" => new Text([Group::LABEL => 'default_editor']), "local[{$ns}.use_multi_editor]" => new Element(Element::TYPE_CHECKBOX, [Element::LABEL => 'use_multi_editor']), "local[{$ns}.limits.home]" => new Text([Group::LABEL => 'limits_home', Element::DEFAULT_VALUE => 3, Element::GROUP => 'limits']), "local[{$ns}.limits.list]" => new Text([Group::LABEL => 'limits_list', Element::DEFAULT_VALUE => 10, Element::GROUP => 'limits'])]);
 }