Exemple #1
0
 /**
  * 
  * Constructor
  * 
  * @param object $field field object as extracted from database
  */
 public function __construct($field, $decorable, $attribute_type)
 {
     $attribute_type = "email";
     //prevent email-cloaking in form displayed in content, when a default value is set
     if (isset($field->attribute_value) && $field->attribute_value != "") {
         $field->attribute_value = str_replace('@', '&#64', $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 = "password";
     parent::__construct($field, $decorable, $attribute_type);
 }