public function __construct()
 {
     parent::__construct();
     parent::getAttributes()->getInputType()->setNumber();
     parent::getAttributes()->getSize()->setValue(self::DEFAULT_SIZE);
     parent::getAttributes()->getStep()->setValue(self::DEFAULT_DECIMAL_NUMBER);
 }
Esempio n. 2
0
 public function initHtmlCheckbox($field_name, $table_name, $default_value = null, $is_editable = false, $warning_update = null, $is_checked = null, $label = null, $viewed_content = null)
 {
     //Définition des propriété spécifique à cette classe
     $this->setChecked($is_checked);
     $this->setDisabled($is_editable);
     //Déclaration des propriétés générique (classe parent)
     parent::initAbstractHtmlInput($field_name, $label, $default_value, $warning_update);
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     parent::getAttributes()->getInputType()->setText();
     parent::getAttributes()->getSize()->setValue(self::DEFAULT_SIZE);
 }