/** * 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); }
/** * Always decode entities * * @param array $arrAttributes An optional attributes array */ public function __construct($arrAttributes = null) { parent::__construct($arrAttributes); $this->decodeEntities = true; }