Beispiel #1
0
 /**
  * 
  * 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);
 }
Beispiel #2
0
 /**
  * 
  * 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);
 }
Beispiel #3
0
 /**
  * 
  * 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);
 }
Beispiel #4
0
 /**
  * 
  * 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('@', '&#64', $field->attribute_value);
     }
     parent::__construct($field, $decorable, $attribute_type);
 }
Beispiel #5
0
 /**
  * 
  * 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);
 }