function __construct(&$application, &$parent, $tagName = '', $id = '', $originalId = '') { parent::__construct($application, $parent, $tagName, $id, $originalId); $this->canHaveChilds = true; $this->_output = array(); $this->acceptOutput = false; $this->overrideEditableRegion = true; }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('for', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('text', true, NULL, COMPONENT_TYPE_STRING); $this->setHtmlTag('label'); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('action', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('actionType', false, 'command', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('confirmMessage', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('disabled', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('value', true, '', COMPONENT_TYPE_STRING); $this->defineAttribute('target', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('type', false, 'button', COMPONENT_TYPE_STRING); $this->defineAttribute('url', false, '', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('cssClass', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('text', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('textIfEmpty', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('html', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('wrapTag', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('adm:disabled', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('adm:readOnly', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('adm:maxLength', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('adm:size', false, 50, COMPONENT_TYPE_INTEGER); $this->defineAttribute('adm:required', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('model:required', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('adm:requiredMessage', false, NULL, COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }