__construct() public méthode

Initialize the object
public __construct ( array $arrAttributes = null )
$arrAttributes array An optional attributes array
 /**
  * Initialize the object
  *
  * @param array $arrAttributes An optional attributes array
  */
 public function __construct($arrAttributes = null)
 {
     parent::__construct($arrAttributes);
     $this->arrAttributes['maxlength'] = 2;
     $this->strCaptchaKey = 'c' . md5(uniqid(mt_rand(), true));
     $this->arrAttributes['required'] = true;
     $this->arrConfiguration['mandatory'] = true;
 }
 /**
  * Load the database object
  *
  * @param array $arrAttributes
  */
 public function __construct($arrAttributes = null)
 {
     $this->import('Database');
     parent::__construct($arrAttributes);
 }
Exemple #3
0
 /**
  * Always decode entities
  *
  * @param array $arrAttributes An optional attributes array
  */
 public function __construct($arrAttributes = null)
 {
     parent::__construct($arrAttributes);
     $this->decodeEntities = true;
 }