function init() { // define the custom attributes $this->defineAttribute('value', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('emptyValue', false, 0, COMPONENT_TYPE_INTEGER); // $this->defineAttribute('emptyValueKey', false, 0, COMPONENT_TYPE_INTEGER); // call the superclass for validate the attributes parent::init(); }
function init() { // define the custom attributes $this->defineAttribute('startFrom', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('maxDepth', false, false, COMPONENT_TYPE_STRING); $this->defineAttribute('pageType', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('value', false, '', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }