Exemplo n.º 1
0
 public function execute()
 {
     $entityTypeId = __Request::get('entityTypeId');
     $visualization = $this->view->loadContent('visualization');
     $this->setComponentsAttribute('list', 'entityTypeId', $entityTypeId);
     $this->setComponentsAttribute('list', 'visualization', $visualization);
     // simulate a new page in site structure
     // for update the navigation menu, breadcrumbs and page title
     $entityTypeService = org_glizy_objectFactory::createObject('movio.modules.ontologybuilder.service.EntityTypeService');
     $title = $entityTypeService->getEntityTypeName($entityTypeId);
     $currentMenu = $this->application->getCurrentMenu();
     $siteMap = $this->application->getSiteMap();
     $menu = org_glizy_application_SiteMap::getEmptyMenu();
     $menu['title'] = $title;
     $menu['id'] = $currentMenu->id + 100000;
     $menu['pageType'] = $currentMenu->pageType;
     $menu['url'] = __Request::get('__url__');
     $siteMap->addChildMenu($currentMenu, $menu);
     $evt = array('type' => GLZ_EVT_SITEMAP_UPDATE, 'data' => $menu['id']);
     $this->dispatchEvent($evt);
 }
Exemplo n.º 2
0
 function process()
 {
     $entityProxy = org_glizy_objectFactory::createObject('movio.modules.ontologybuilder.models.proxy.EntityProxy');
     $this->_content = $entityProxy->loadContentFrontend($this->getId());
     $this->createChildComponents();
     $this->initChilds();
     $this->processChilds();
     // simulate a new page in site structure
     // for update the navigation menu, breadcrumbs and page title
     $currentMenu =& $this->_application->getCurrentMenu();
     $siteMap =& $this->_application->getSiteMap();
     $menu = org_glizy_application_SiteMap::getEmptyMenu();
     $menu['title'] = $this->_content['title'];
     $menu['id'] = $currentMenu->id + 100000;
     $menu['pageType'] = $currentMenu->pageType;
     // $menu['isVisible']   = false;
     $menu['url'] = __Request::get('__url__');
     $siteMap->addChildMenu($currentMenu, $menu);
     //$this->_application->setPageId($menu['id']);
     $evt = array('type' => GLZ_EVT_SITEMAP_UPDATE, 'data' => $menu['id']);
     $this->dispatchEvent($evt);
 }