/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { if (is_null($attribute_type)) { $attribute_type = "radio"; } parent::__construct($field, $decorable, $attribute_type); }
/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { if (is_null($decorable)) { $decorable = false; } $attribute_type = 'checkbox'; parent::__construct($field, $decorable, $attribute_type); }
/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { if (is_null($decorable)) { $decorable = false; } if (is_null($attribute_type)) { $attribute_type = "submit"; } parent::__construct($field, $decorable, $attribute_type); }
/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { if (is_null($decorable)) { $decorable = false; } $attribute_type = "hidden"; //prevent email cloaking in hidden fields that may contain a email address as default value if (isset($field->attribute_value) && $field->attribute_value != "") { $field->attribute_value = str_replace('@', '@', $field->attribute_value); } parent::__construct($field, $decorable, $attribute_type); }
/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { $attribute_type = "date"; parent::__construct($field, $decorable, $attribute_type); }