/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('width', false, '40%', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
function init() { $this->defineAttribute('cssClass', false, null, COMPONENT_TYPE_STRING); $this->defineAttribute('title', false, null, COMPONENT_TYPE_STRING); $this->defineAttribute('titleTag', false, 'h3', COMPONENT_TYPE_STRING); parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('showWelcome', false, true, COMPONENT_TYPE_BOOLEAN); $this->acceptOutput = true; parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('name', true, '', COMPONENT_TYPE_STRING); $this->defineAttribute('forceChildCreation', false, NULL, COMPONENT_TYPE_BOOLEAN); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('id', false, NULL, COMPONENT_TYPE_INTEGER); $this->defineAttribute('target', false, NULL, COMPONENT_TYPE_OBJECT); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('queryOr', false, false, COMPONENT_TYPE_BOOLEAN); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('addWrapDiv', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('cssClass', false, 'nav nav-tabs', COMPONENT_TYPE_STRING); $this->defineAttribute('paneCssClass', false, 'tab-content', COMPONENT_TYPE_STRING); $this->defineAttribute('showNav', false, false, COMPONENT_TYPE_BOOLEAN); // 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('attributeToSelect', false, 'id', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClassCurrent', false, 'current', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->canHaveChilds = true; $this->overrideEditableRegion = false; // define the custom attributes $this->defineAttribute('adm:editComponents', false, array(), COMPONENT_TYPE_ENUM); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('cssClass', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('addExtraSpan', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('legendTag', false, 'legend', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('dataProvider', true, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('idName', false, 'id', COMPONENT_TYPE_STRING); $this->defineAttribute('routeUrl', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('ogTitle', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('modifyBreadcrumbs', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('processCell', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('processCellParams', false, NULL, COMPONENT_TYPE_STRING); parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('tag', false, 'div', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('text', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('adm:showControl', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('addInnerDiv', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('innerCssClass', false, '', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
function init() { // define the custom attributes $this->defineAttribute('label', true, '', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClass', false, 'tab-pane', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClassTab', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('disabled', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('dropdown', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('routeUrl', false, NULL, 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('customClass', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('defaultState', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('rememberState', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('useIdPrefix', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('overrideEditableRegion', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('targetPage', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('forceChildCreation', false, NULL, COMPONENT_TYPE_BOOLEAN); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('name', true, '', COMPONENT_TYPE_STRING); $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('url', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('draw', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('backUrl', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('cssClassTab', false, '', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); $this->actionsOriginal = explode(',', $this->getAttribute('name')); $this->actions = explode(',', strtolower($this->getAttribute('name'))); }
/** * Init * * @return void * @access public */ function init() { $this->acceptOutput = true; $this->overrideEditableRegion = false; // define the custom attributes $this->defineAttribute('defaultEditableRegion', false, 'content', COMPONENT_TYPE_STRING); $this->defineAttribute('templateType', false, 'php', COMPONENT_TYPE_STRING); $this->defineAttribute('templateFileName', true, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('adm:editComponents', false, array(), COMPONENT_TYPE_ENUM); $this->defineAttribute('addCoreJS', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('allowModulesSnippets', false, false, COMPONENT_TYPE_BOOLEAN); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING); // $this->defineAttribute('start', false, NULL, COMPONENT_TYPE_INTEGER); // $this->defineAttribute('count', false, NULL, COMPONENT_TYPE_INTEGER); $this->defineAttribute('newMode', false, false, COMPONENT_TYPE_BOOLEAN); // $this->defineAttribute('routeUrl', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('adm:min', false, NULL, COMPONENT_TYPE_INTEGER); $this->defineAttribute('adm:max', false, NULL, COMPONENT_TYPE_INTEGER); $this->defineAttribute('adm:collapsable', false, NULL, COMPONENT_TYPE_INTEGER); // call the superclass for validate the attributes parent::init(); }
private function startProcessAjax() { header('Cache-Control: no-cache'); header('Pragma: no-cache'); header('Expires: -1'); $this->_rootComponent->resetDoLater(); $this->_rootComponent->init(); $this->_rootComponent->execDoLater(); $evt = array('type' => GLZ_EVT_START_PROCESS); $this->dispatchEvent($evt); $ajaxTarget = org_glizy_Request::get('ajaxTarget'); $targetComponent =& $this->_rootComponent->getComponentById($ajaxTarget); if (is_null($targetComponent)) { // prima prova a creare i figli in modo ritardato // questo è usato nella gestione degli stati $this->_rootComponent->deferredChildCreation(true); $targetComponent =& $this->_rootComponent->getComponentById($ajaxTarget); // se il targetComponent è ancora nullo // prova a lanciare il process di tutti i figli if (is_null($targetComponent)) { $this->_rootComponent->process(); $targetComponent =& $this->_rootComponent->getComponentById($ajaxTarget); if (is_null($targetComponent)) { return false; } } } $ajaxMethod = __Request::get('ajaxMethod', 'process_ajax'); if (method_exists($targetComponent, $ajaxMethod)) { org_glizy_Request::remove('pageId'); org_glizy_Request::remove('ajaxTarget'); $result = $targetComponent->{$ajaxMethod}(); } else { $result = $this->processAjaxCallController($targetComponent); } if (!$targetComponent->controllerDirectOutput() && !is_array($result) && !is_object($result)) { $result = array('status' => $result === true ? 'success' : 'error'); } if (is_array($result) && isset($result['html'])) { header("Content-Type: " . $this->contentType . "; charset=" . __Config::get('CHARSET')); echo $result['html']; } else { header("Content-Type: application/json; charset=utf-8"); echo json_encode($result); } return true; }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('addValidationJs', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('action', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('fieldset', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('method', false, 'post', COMPONENT_TYPE_STRING); $this->defineAttribute('onsubmit', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('cssClass', false, __Config::get('glizy.form.cssClass'), COMPONENT_TYPE_STRING); // $this->defineAttribute('command', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('enctype', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('removeGetValues', false, true, COMPONENT_TYPE_STRING); $this->defineAttribute('readOnly', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('dataProvider', false, NULL, COMPONENT_TYPE_OBJECT); // call the superclass for validate the attributes parent::init(); }
function init() { $this->defineAttribute('applyFormItemTemplate', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('validationType', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('validationMessage', false, '', COMPONENT_TYPE_STRING); parent::init(); // se c'è un binding lo imposta per poterlo rileggere $name = $this->getAttribute('name'); $name = empty($name) ? $this->getOriginalId() : $name; $bindToField = $this->getAttribute('bindTo'); if (!empty($bindToField) && !__Request::exists($bindToField)) { __Request::set($bindToField, __Request::get($name)); } if (!$this->_application->isAdmin()) { $this->addValidatorClass(); } }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('dataProvider', true, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('cssClass', false, 'even,odd', COMPONENT_TYPE_STRING); $this->defineAttribute('filters', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('useQueryParams', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('paginate', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('query', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('routeUrl', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('title', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('processCell', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('processCellParams', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('allowEmptySearch', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('adm:showControl', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('wrapTagCssClass', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('removeTitleWithNoFilter', false, false, COMPONENT_TYPE_BOOLEAN); parent::init(); $this->canHaveChilds = false; }
/** * Init * * @return void * @access public */ function init() { // define the custom attributes $this->defineAttribute('controller', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('tableCssClass', false, 'list', COMPONENT_TYPE_STRING); $this->defineAttribute('dataProvider', true, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('filters', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('label', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('paginate', false, NULL, COMPONENT_TYPE_OBJECT); $this->defineAttribute('query', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('routeUrl', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('skipOrder', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('skipGroup', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('drawHeader', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('renderRow', false, '', COMPONENT_TYPE_STRING); $this->defineAttribute('orderBy', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('orderDirection', false, NULL, COMPONENT_TYPE_STRING); $this->defineAttribute('hideTotals', false, false, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('allowEmptySearch', false, true, COMPONENT_TYPE_BOOLEAN); $this->defineAttribute('emptySearchLabel', false, '', COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }
/** * Init * * @return void * @access public */ function init() { $this->defineAttribute('cssClass', false, NULL, COMPONENT_TYPE_STRING); // call the superclass for validate the attributes parent::init(); }