/** * Process * * @return boolean false if the process is aborted * @access public */ function process() { $acl = $this->getAttribute('acl'); if (!empty($acl)) { list($service, $action) = explode(',', $acl); if (!$this->_user->acl($service, $action)) { $this->breakCycle(); $this->addOutputCode("403 Forbidden"); return; } } $this->sessionEx = org_glizy_ObjectFactory::createObject('org.glizy.SessionEx', $this->getId()); $this->action = __Request::get($this->actionName); $oldAction = $this->sessionEx->get($this->actionName); foreach ($this->childComponents as $c) { if (is_a($c, 'org_glizy_mvc_components_State')) { $c->deferredChildCreation(); } } $this->callController(); $this->canCallController = true; $this->action = strtolower($this->action); parent::process(); $this->sessionEx->set($this->actionName, $oldAction); }
function execute() { if (__Request::get('mbModuleType') == 'csv') { $tableName = $this->parent->getTableName(); $fields = __Request::get('fieldName'); $modelName = 'userModules.' . $tableName . '.models.Model'; $fieldsMap = array(); foreach ($fields as $f) { $col = str_replace('row_', '', $f); $fieldsMap[] = array($f, $col); } $ar = org_glizy_ObjectFactory::createModel($modelName); $csvIterator = org_glizy_ObjectFactory::createObject('movio.modules.modulesBuilder.services.CVSImporter', __Request::get('mbCsvOptions')); foreach ($csvIterator as $row) { if ($f) { $ar->emptyRecord(); foreach ($fieldsMap as $f) { $ar->{$f[0]} = $row->{$f[1]}; } $ar->publish(); } } } return true; }
function process() { parent::process(); $this->_content['id'] = $this->getId(); $this->_content['cssClass'] = $this->getAttribute('cssClass'); $this->_content['title'] = $this->getAttributeString('title'); $this->_content['label'] = $this->getAttributeString('label'); $this->_content['buttonLabel'] = $this->getAttributeString('buttonLabel'); $this->_content['value'] = __Request::get('search', ''); if (!$this->_content['buttonLabel']) { $this->_content['buttonLabel'] = $this->_content['label']; } $searchPageId = $this->getAttribute('searchPageId'); if (!is_int($searchPageId)) { $siteMap = $this->_application->getSiteMap(); $menu = $siteMap->getMenuByPageType($searchPageId); if ($menu && $menu->isVisible) { $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $menu->id)); } else { $this->setAttribute('visible', false); } } else { $this->_content['__url__'] = org_glizy_helpers_Link::makeURL('link', array('pageId' => $searchPageId)); } }
/** * {@inheritdoc} */ public function collect() { $application = org_glizy_ObjectValues::get('org.glizy', 'application'); $result = array(); $result['pageId'] = $application->getPageId(); $result['routing'] = __Request::get('__routingName__') . ' > ' . __Request::get('__routingPattern__'); $result['controllers'] = implode(', ', $this->calledControllers); $user = $application->getCurrentUser(); $userData = array('id' => $user->id, 'firstName' => $user->firstName, 'lastName' => $user->lastName, 'email' => $user->email, 'groupId' => $user->groupId, 'backEndAccess' => $user->backEndAccess); $result['user'] = $this->getDataFormatter()->formatVar($userData); $menu = $application->getCurrentMenu(); $menuData = array('id' => $menu->id, 'title' => $menu->title, 'parentId' => $menu->parentId, 'pageType' => $menu->pageType, 'type' => $menu->type, 'depth' => $menu->depth); $result['menu'] = $this->getDataFormatter()->formatVar($menuData); // request $data = __Request::getAllAsArray(); $tempData = array(); foreach ($data as $k => $v) { if (strpos($k, '__') !== 0) { $tempData[$k] = $v; } } $result['__Request'] = $this->getDataFormatter()->formatVar($tempData); $result['__Config'] = $this->getDataFormatter()->formatVar(__Config::getAllAsArray()); $result['__Routing'] = $this->getDataFormatter()->formatVar(__Routing::getAllAsArray()); $result['__Session'] = $this->getDataFormatter()->formatVar(__Session::getAllAsArray()); return $result; }
public function process() { $this->_content = $this->_parent->loadContent($this->getId()); $query = (array) json_decode($this->_content); $this->_content = array('id' => $this->getId(), 'label' => $this->getAttribute('label'), 'ajax' => false, 'ajaxUrl' => GLZ_HOST . '/' . $this->getAjaxUrl() . 'show&document_id=' . __Request::get('document_id')); $this->setAttribute('visible', $query['visible']); }
function __construct($fileName = '', $rootPath = '') { parent::__construct('pdf.php', $rootPath); $this->pageUrl = GLZ_HOST . "/index.php?" . __Request::get('__url__'); $this->pageUrl = str_replace('&printPdf=1', '', $this->pageUrl); $this->pageTitle = $this->currentMenu->title; }
public function execute() { $c = $this->view->getComponentById('dp'); if (stripos($this->application->getPageId(), 'picker') !== false) { // picker $sessionEx = org_glizy_ObjectFactory::createObject('org.glizy.SessionEx', $c->getId()); $mediaType = org_glizy_Request::get('mediaType', ''); if (empty($mediaType)) { $mediaType = $sessionEx->get('mediaType', 'ALL', false, false); } if (!empty($mediaType) && strtoupper($mediaType) != 'ALL') { $sessionEx->set('mediaType', $mediaType, GLZ_SESSION_EX_PERSISTENT); $c->setAttribute('query', 'all' . ucfirst(strtolower(str_replace(',', '_', $mediaType)))); // $this->setAttribute('filters', 'media_type IN (\''.str_replace(',', '\',\'',$mediaType).'\')'); } if (stripos($this->application->getPageId(), 'tiny') !== false) { $this->setComponentsVisibility('buttonsBar', false); } } else { $query = str_replace('all', '', __Request::get('tabs_state', 'allMedia')); // $query = str_replace('mediaarchive_all', '', strtolower($this->application->getPageId())); if (empty($query) || $query == 'mediaarchive') { $query = 'media'; } $query = 'all' . ucfirst($query); $c->setAttribute('query', $query); } // TODO disabilitare il pulsane aggiungi in base all'acl }
public function process() { if ($this->getAttribute('global')) { $templateXml = 'TemplateAdminGlobal'; $menuId = 0; } else { $templateXml = 'TemplateAdmin'; $menuId = __Request::get('menuId', __Request::get('__id')); if (!$menuId) { // TODO ERRORE } } $templateProxy = org_glizy_ObjectFactory::createObject('org.glizycms.template.models.proxy.TemplateProxy'); $templateName = $templateProxy->getSelectedTemplate(); if (!$templateName) { // TODO ERRORE } $templateProxy->loadTemplateLocale(); // legge i dati del template $data = $templateProxy->getEditDataForMenu($menuId, __Request::exists('loadFromParent')); $customTemplate = $templateProxy->getTemplateCustomClass(); if ($customTemplate && method_exists($customTemplate, 'updateTemplateData')) { $customTemplate->updateTemplateData($data); } $this->setData($data); $this->addDefaultComponents(); $templateRealPath = $templateProxy->getTemplateRealpath(); if ($templateRealPath) { org_glizy_ObjectFactory::attachPageToComponent($this, $this->_application, $templateXml, $templateRealPath . '/', array('idPrefix' => $this->getId() . '-', 'skipImport' => true, 'mode' => 'edit'), $this->getId() . '-'); parent::process(); // TODO visualizzare che non ci sono parametri di personalizzazione } }
public function loginFromRequest($loginIdField, $passwordFields, $rememberField = false, $readFromCookie = false) { $loginId = trim(__Request::get($loginIdField, $readFromCookie ? $_COOKIE['glizy_username'] : '')); $psw = trim(__Request::get($passwordFields, $readFromCookie ? $_COOKIE['glizy_password'] : '')); $remember = __Request::get($rememberField, 0); $this->login($loginId, glz_password($psw), $remember); }
public function executeLater() { if ($this->submit && $this->controller->validate()) { $email = org_glizy_Request::get('user_email', ''); $ar = org_glizy_ObjectFactory::createModel('org.glizy.models.User'); if ($ar->find(array('user_loginId' => $email))) { // TODO tradurre $this->view->validateAddError('L\'email è già presente nel database, usare un\'altra email o richiedere la password'); return; } $fields = $ar->getFields(); foreach ($fields as $k => $v) { if (__Request::exists($k)) { $ar->{$k} = __Request::get($k); } } $ar->user_FK_usergroup_id = __Config::get('USER_DEFAULT_USERGROUP'); $ar->user_isActive = __Config::get('USER_DEFAULT_ACTIVE_STATE'); $ar->user_password = glz_password(__Request::get('user_password')); $ar->user_loginId = $email; $ar->user_email = $email; $ar->user_dateCreation = new org_glizy_types_DateTime(); $ar->save(); $this->changeAction('registrationConfirm'); } }
function process_ajax() { $mode = $this->getAttribute('mode'); $q = __Request::get('q'); $result = array(); if ($mode == 'users') { $it = org_glizy_ObjectFactory::createModelIterator('org.glizycms.userManager.models.UserGroup', 'all'); $it->setOrFilters(array("user_firstName" => $q, "user_lastName" => $q, "user_loginId" => $q)); foreach ($it as $ar) { $result[] = array('id' => $ar->user_id, 'text' => $ar->user_loginId); } } else { if ($mode == 'groups') { $it = org_glizy_ObjectFactory::createModelIterator('org.glizycms.userManager.models.UserGroup', 'all', array('filters' => array('usergroup_name' => $q))); foreach ($it as $ar) { $result[] = array('id' => $ar->usergroup_id, 'text' => $ar->usergroup_name); } } else { $it = org_glizy_ObjectFactory::createModelIterator('org.glizycms.roleManager.models.Role', 'all', array('filters' => array('role_name' => $q))); foreach ($it as $ar) { $result[] = array('id' => $ar->role_id, 'text' => $ar->role_name); } } } return $result; }
function createChildComponents() { $entityTypeService = $this->_application->retrieveProxy('movio.modules.ontologybuilder.service.EntityTypeService'); $properties = $entityTypeService->getEntityTypeAttributeProperties(__Request::get('entityTypeId'), $this->_parent->getId()); $moduleId = $properties['entity_properties_params']; $this->_content['title'] = $this->data->text; $c =& org_glizy_ObjectFactory::createComponent('org.glizy.components.Text', $this->_application, $this, 'glz:Text', 'title', 'title'); $this->addChild($c); $this->_content['url'] = __Routing::makeUrl($moduleId, array('document_id' => $this->data->id, 'title' => $this->data->text)); $c =& org_glizy_ObjectFactory::createComponent('org.glizy.components.Text', $this->_application, $this, 'glz:Text', 'url', 'url'); $this->addChild($c); $module = org_glizy_Modules::getModule($moduleId); $ar = org_glizy_ObjectFactory::createModel($module->classPath . '.models.Model'); $ar->load($this->data->id); if ($ar->fieldExists('image')) { $this->_content['__image'] = $ar->image; $c =& org_glizy_ObjectFactory::createComponent('org.glizy.components.Image', $this->_application, $this, 'glz:Image', '__image', '__image'); $c->setAttribute('width', __Config::get('THUMB_WIDTH')); $c->setAttribute('height', __Config::get('THUMB_HEIGHT')); $c->setAttribute('crop', true); $this->addChild($c); } else { $c =& org_glizy_ObjectFactory::createComponent('movio.modules.ontologybuilder.views.components.NoImage', $this->_application, $this, 'glz:Image', '__image', '__image'); $c->setAttribute('width', __Config::get('THUMB_SMALL_WIDTH')); $c->setAttribute('height', __Config::get('THUMB_SMALL_HEIGHT')); $this->addChild($c); } }
public function executeLater() { if ($this->user->isLogged() && $this->submit && $this->controller->validate()) { $ar = org_glizy_ObjectFactory::createModel('org.glizy.models.User'); $ar->load($this->user->id); $email = org_glizy_Request::get('user_email', ''); if ($email != $ar->user_loginId) { $ar2 = org_glizy_ObjectFactory::createModel('org.glizy.models.User'); if ($ar2->find(array('user_loginId' => $email)) && $ar2->user_id != $ar->user_id) { $this->view->validateAddError('L\'email è già presente nel database, usare un\'altra email'); return; } } // TODO migliorare così siamo esposti a problemi di sicurezza $fields = $ar->getFields(); foreach ($fields as $k => $v) { if ($k == 'user_password') { continue; } if (__Request::exists($k)) { $ar->{$k} = __Request::get($k); } } $password = __Request::get('user_password'); if ($password) { $ar->user_password = glz_password($password); } $ar->user_loginId = $email; $ar->user_email = $email; $ar->save(); $this->changeAction('modifyConfirm'); } }
function process() { $params = __Request::get('params'); $query = json_decode($params, true); $paginateClass = $this->getComponentById('paginate'); $paginateClass->setRecordsCount(); $limits = $paginateClass->getLimits(); $start = $limits['start'] + 1; $checkBoxEnable = $query['imgCheckBox'] === "checkBoxEnable"; $rows = 18; $diff = 0; if ($query['maxResult'] && !$checkBoxEnable && $start + $rows > $query['maxResult']) { $rows = $query['maxResult'] - $start + 1; $diff = 18 - $rows; } $this->_content = array('id' => $this->getId(), 'records' => array(), 'error' => null, 'params' => $params, 'rows' => $rows, 'currentOffset' => $limits['start']); $request = org_glizy_ObjectFactory::createObject('movio.modules.europeana.SendRequest'); $response = $request->execute($query, $start, $rows); if (!$response->error) { $this->_content['records'] = $response->records; if ($checkBoxEnable) { $this->_content['imgCheckBox'] = true; $total = $response->totalResults; } else { $this->_content['imgCheckBox'] = false; $total = $response->totalResults ? $query['maxResult'] : 0; } } else { $this->_content['error'] = $response->error; } $this->_content['imgList'] = $query['imgList'] ? $query['imgList'] : array(); $paginateClass->setRecordsCount($total - $diff, $rows); }
function render_html() { if ($this->_application->getCurrentMenu()->printPdf && !org_glizy_ObjectValues::get('org.glizy.application', 'pdfMode')) { $url = GLZ_HOST . "/index.php?" . __Request::get('__url__') . "&printPdf=1"; $output = __Link::makeSimpleLink($this->getAttribute('label'), $url, '', 'printPdf'); $this->addOutputCode($output); } }
function execute() { $id = __Request::get('id'); $modulesState = org_glizy_Modules::getModulesState(); $modulesState[$id] = __Request::get('action') == 'enable'; org_glizy_Modules::setModulesState($modulesState); return true; }
function process() { $groupId = __Request::get('groupId'); if ($groupId) { $entityProxy = org_glizy_ObjectFactory::createObject('movio.modules.ontologybuilder.models.proxy.EntityProxy'); $this->_content = $entityProxy->getContentsByProfile($groupId); } }
public function execute() { $id = __Request::get('id'); $media = org_glizy_ObjectFactory::createModel('org.glizycms.models.Media'); $media->load($id); $data = $media->getValuesAsArray(); $this->view->setData($data); }
function __construct($controller = NULL, $application = NULL) { parent::__construct($controller, $application); $this->submit = strtolower(__Request::get('submit', '')) == 'submit' || strtolower(__Request::get('submit', '')) == 'submitclose'; $this->show = strtolower(__Request::get('action', '')) == 'show'; $this->refreshPage = strtolower(__Request::get('action', '')) == 'close' || strtolower(__Request::get('submit', '')) == 'submitclose'; $this->id = intval(__Request::get('id', '')); $this->pageId = $this->application->getPageId(); }
public function process() { $this->_content = new org_glizycms_contents_views_components_SiteTreeViewVO(); $this->dictionaryId = __Request::get('dictionaryId'); $this->_content->addLabel = $this->getAttribute('addLabel'); $this->_content->title = $this->getAttribute('title'); $this->_content->ajaxUrl = $this->getAjaxUrl(); $this->_content->addUrl = __Routing::makeUrl('linkChangeAction', array('action' => 'add'), array('dictionaryId' => $this->dictionaryId)); }
public function execute($data) { $ids = explode(',', __Request::get('ids')); if (!empty($ids)) { $mediaProxy = org_glizy_ObjectFactory::createObject('org.glizycms.mediaArchive.models.proxy.MediaProxy'); foreach ($ids as $id) { $mediaProxy->deleteMedia($id); } } }
function process() { $this->_content = array(); $termId = __Request::get('termId'); if ($termId) { $thesaurusProxy = org_glizy_ObjectFactory::createObject('movio.modules.thesaurus.models.proxy.ThesaurusProxy'); $term = $thesaurusProxy->loadTerm($termId); $this->_content = $thesaurusProxy->getDocumentsWithTerm($termId); } }
function process() { // check if the user is already logged if ($this->_user->isLogged()) { $this->setAttribute('visible', false); $this->redirectAfterLogin(); } $submitId = 'submit_' . $this->getId(); $this->_content['id'] = $this->getId(); $this->_content['submitName'] = $submitId; $this->_content['errorLabel'] = ''; $this->_content['cssClass'] = $this->getAttribute('cssClass'); $this->_content['userLabel'] = $this->getAttribute('userLabel'); $this->_content['userField'] = $this->getAttribute('userField'); $this->_content['passwordLabel'] = $this->getAttribute('passwordLabel'); $this->_content['passwordField'] = $this->getAttribute('passwordField'); $this->_content['registrationPage'] = $this->getAttribute('registrationPage'); $this->_content['registrationLabel'] = $this->getAttribute('registrationLabel'); $this->_content['confirmLabel'] = $this->getAttribute('confirmLabel'); $this->_content['rememberLabel'] = $this->getAttribute('rememberLabel'); $this->_content['askPasswordLabel'] = $this->getAttribute('askPasswordLabel'); $this->_content['title'] = $this->getAttributeString('title'); $this->_content['__url__'] = org_glizy_helpers_Link::makeURL($this->getAttribute('registrationUrl')); $this->_content['askPasswordUrl'] = org_glizy_helpers_Link::makeURL($this->getAttribute('askPasswordUrl')); if (__Request::exists($this->_content['userField']) || __Request::exists($this->_content['passwordField'])) { $authClass = org_glizy_ObjectFactory::createObject(__Config::get('glizy.authentication')); if ($authClass) { try { $allowGroups = $this->getAttribute('allowGroups') != '' ? explode(',', $this->getAttribute('allowGroups')) : array(); $authClass->setAllowGroups($allowGroups); $authClass->setOnlyBackendUser($this->getAttribute('backend')); $authClass->setUserLanguage(__Request::get($this->getAttribute('languageField'))); $authClass->loginFromRequest($this->getAttribute('userField'), $this->getAttribute('passwordField'), $this->getAttribute('rememberField'), true); $this->redirectAfterLogin(); } catch (org_glizy_authentication_AuthenticationException $e) { switch ($e->getCode()) { case org_glizy_authentication_AuthenticationException::EMPTY_LOGINID_OR_PASSWORD: case org_glizy_authentication_AuthenticationException::WRONG_LOGINID_OR_PASSWORD: $this->_content['errorLabel'] = $this->getAttribute('errorLabel'); break; case org_glizy_authentication_AuthenticationException::USER_NOT_ACTIVE: case org_glizy_authentication_AuthenticationException::ACCESS_NOT_ALLOWED: $this->_content['errorLabel'] = org_glizy_locale_Locale::get('GLZ_LOGIN_DISABLED'); break; } } } else { // TODO mostrare errore $this->_content['errorLabel'] = __Config::get('glizy.authentication'); } } else { $this->_content['errorLabel'] = org_glizy_Session::get('glizy.loginError', ''); org_glizy_Session::remove('glizy.loginError'); } }
function execute() { if (__Request::exists('next')) { $pageType = $this->application->getPageType(); list($moduleName) = explode('.', $pageType); __Request::set('mbTable', $moduleName); $builder = org_glizy_ObjectFactory::createObject('movio.modules.modulesBuilder.builder.Builder'); $builder->executeDelete(); org_glizy_helpers_Navigation::gotoUrl(__Link::makeUrl('link', array('pageId' => 'glizycms_contentsedit'))); } }
function executeLater() { if ($this->submit) { if ($this->controller->validate()) { $isNewRecord = $this->id == 0; $ar = org_glizy_ObjectFactory::createModel($this->modelName); $ar->loadFromArray(__Request::getAllAsArray()); $this->id = $ar->save(); $this->redirect($isNewRecord); } } }
public function execute() { $entityId = __Request::get('entityId'); // TODO controllare se $entityId == 0 // se non è 0 e il contenuto non esiste bisogna visualizzare un errore $entityProxy = org_glizy_objectFactory::createObject('movio.modules.ontologybuilder.models.proxy.EntityProxy'); $data = $entityProxy->loadContent($entityId, 'DRAFT'); if ($data) { $data['__id'] = $entityId; } $this->view->setData($data); }
function getItem() { $acl = $this->getAttribute('acl'); if (!empty($acl)) { list($service, $action) = explode(',', $acl); if (!$this->_user->acl($service, $action)) { return false; } } $value = strtolower($this->getAttribute('value')); $label = $this->getAttribute('label'); $url = $this->getAttribute('url'); $routeUrl = $this->getAttribute('routeUrl'); $cssClass = $this->getAttribute('cssClass'); if ($routeUrl) { $title = $label; if ($cssClass) { $label = '<i class="' . $cssClass . '"></i>' . $label; } $label = $this->addWrap($label); $url = org_glizy_helpers_Link::makeLink($routeUrl, array('pageId' => $value, 'title' => $title, 'label' => $label), array(), '', false); $condition = $this->getAttribute('selected'); if (!$condition) { $condition = $value; } $condition = explode(',', $condition); if (count($condition) > 1) { $selected = false; for ($i = 0; $i < count($condition); $i++) { if (__Request::get($condition[$i]) == $condition[$i + 1]) { $selected = true; break; } $i++; } } else { $selected = $value == $this->_application->getPageId(); } return array('url' => $url, 'selected' => $selected); } else { if ($url) { return array('url' => org_glizy_helpers_Link::makeSimpleLink($this->addWrap($label), $url, $label, $cssClass), 'selected' => $value == __Request::get('__url__')); } else { if ($value) { $url = org_glizy_helpers_Link::makeLink($value, array('label' => $this->addWrap($label), 'title' => $label, 'cssClass' => $cssClass), array(), '', false); return array('url' => $url, 'selected' => $value == __Request::get('__url__')); } else { return array('url' => '<span class="' . $cssClass . '">' . $label . '</span>', 'selected' => false); } } } }
/** * Render * * @return void * @access public */ function render_html() { $folder = $this->getAttribute('folder'); $src = $this->getAttribute('src'); $type = $this->getAttribute('type'); $language = $this->_application->getLanguage(); $language2 = $language . '-' . strtoupper($language); $src = str_replace(array('##LANG##', '##LANG2##'), array($language, $language2), $src); if ($folder) { if (!org_glizy_ObjectValues::get('org.glizy.JS', 'run', false)) { org_glizy_ObjectValues::set('org.glizy.JS', 'run', true); $pageType = $this->_application->getPageType(); $state = __Request::get('action', ''); $params = __Request::getAllAsArray(); unset($params['__params__']); unset($params['__routingName__']); unset($params['__routingPattern__']); unset($params['__url__']); unset($params['__back__url__']); $params = json_encode($params); $jsCode = <<<EOD var GlizyApp = {}; GlizyApp.pages = {}; jQuery( function(){ \tif ( typeof( GlizyApp.pages[ '{$pageType}' ] ) != 'undefined' ) \t{ \t\tGlizyApp.pages[ '{$pageType}' ]( '{$state}', {$params} ); \t} }) EOD; $this->addOutputCode(org_glizy_helpers_JS::JScode($jsCode), 'head'); } // include tutta una cartella $jsFileName = $this->includeFolder($folder); if ($this->getAttribute('inline')) { $js = file_get_contents($jsFileName); if (strpos($js, '<script') !== false) { $this->addOutputCode($js); } else { $this->addOutputCode(org_glizy_helpers_JS::JScode($js, $type)); } } else { $this->addOutputCode(org_glizy_helpers_JS::linkJSfile($jsFileName . (__Config::get('DEBUG') ? '?' . microtime(true) : ''), null, $type)); } } else { if ($src) { $this->addOutputCode(org_glizy_helpers_JS::linkJSfile($src, null, $type)); } else { $this->addOutputCode(org_glizy_helpers_JS::JScode($this->replaceLocale($this->getText()), $type)); } } }
function executeLater_deleteModule($oldState) { if (strtolower(__Request::get('action', '')) == 'next') { $pageType = $this->_parent->_application->getPageType(); list($moduleName) = explode('.', $pageType); __Session::set('mbTable', $moduleName); glz_import('movio.modules.modulesBuilder.builder.*', array('Builder.php', 'AbstractCommand.php')); $builder = org_glizy_ObjectFactory::createObject('movio.modules.modulesBuilder.builder.Builder'); $builder->executeDelete(); glz_import('org.glizy.helpers.Navigation'); org_glizy_helpers_Navigation::gotoUrl(__Link::makeUrl('link', array('pageId' => 'SiteMap'))); } }
public function process() { if ($this->getAttribute('mode') == 'container') { $this->emptySrc = __Routing::makeUrl('linkChangeAction', array('action' => $this->getAttribute('initialState'))); $this->editSrc = __Routing::makeUrl('linkChangeAction', array('action' => $this->getAttribute('editState'))) . '?dictionaryId=' . __Request::get('dictionaryId') . '&termId='; } else { $termId = __Request::get('termId'); $thesaurusProxy = org_glizy_ObjectFactory::createObject('movio.modules.thesaurus.models.proxy.ThesaurusProxy'); $termVo = $thesaurusProxy->loadTerm($termId); $this->setData($termVo); parent::process(); } }