function init() { $this->defineAttribute('addValidationJs', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('rememberValues', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('rememberMode', false, 'persistent', COMPONENT_TYPE_STRING); parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('label', false, org_glizy_locale_Locale::get('GLZ_SEARCH_LABEL'), COMPONENT_TYPE_STRING); $this->defineAttribute('buttonLabel', false, org_glizy_locale_Locale::get('GLZ_SEARCH_BUTTON'), COMPONENT_TYPE_STRING); $this->defineAttribute('comment', false, org_glizy_locale_Locale::get('GLZ_SEARCH_COMMENT'), COMPONENT_TYPE_STRING); $this->defineAttribute('skipFormTag', false, false, COMPONENT_TYPE_BOOLEAN); parent::init(); $this->setAttribute('method', 'get'); }
function init() { // define the custom attributes $this->defineAttribute('customValidation', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('newCode', false, false, COMPONENT_TYPE_BOOLEAN); // call the superclass for validate the attributes parent::init(); $this->setAttribute('addValidationJs', false); $this->setAttribute('cssClass', ' formEdit', true); }
function init() { $this->defineAttribute('cssClass', false, __Config::get('glizy.searchFilters.cssClass'), COMPONENT_TYPE_STRING); $this->defineAttribute('wrapDiv', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('fieldset', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('rememberValues', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('rememberMode', false, 'persistent', COMPONENT_TYPE_STRING); $this->defineAttribute('setRequest', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('filterClass', false, '', COMPONENT_TYPE_STRING); parent::init(); }