public function __construct() { parent::__construct(); parent::getAttributes()->getInputType()->setNumber(); parent::getAttributes()->getSize()->setValue(self::DEFAULT_SIZE); parent::getAttributes()->getStep()->setValue(self::DEFAULT_DECIMAL_NUMBER); }
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); }
public function __construct() { parent::__construct(); parent::getAttributes()->getInputType()->setText(); parent::getAttributes()->getSize()->setValue(self::DEFAULT_SIZE); }