public function loaddeeplinkslistAction()
 {
     $this->view->deeplinks = Application_Model_Mappers_DeeplinkMapper::getInstance()->fetchAll(null, array('name'));
     $this->view->deeplinksList = $this->view->render('backend/seo/deeplinkslist.phtml');
 }
Beispiel #2
0
 private function _updateDeeplinks()
 {
     $cacheHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('Cache');
     if (null === ($deeplinks = $cacheHelper->load(Helpers_Action_Cache::KEY_DEEPLINKS, Helpers_Action_Cache::PREFIX_DEEPLINKS))) {
         $deeplinks = Application_Model_Mappers_DeeplinkMapper::getInstance()->fetchAll();
         $deeplinks = Tools_System_Tools::bobbleSortDeeplinks($deeplinks);
         $cacheHelper->save(Helpers_Action_Cache::KEY_DEEPLINKS, $deeplinks, Helpers_Action_Cache::PREFIX_DEEPLINKS, array(), Helpers_Action_Cache::CACHE_NORMAL);
     }
     if (!empty($deeplinks)) {
         $page = Application_Model_Mappers_PageMapper::getInstance()->find($this->_object->getPageId());
         if (!$page instanceof Application_Model_Models_Page) {
             return;
         }
         foreach ($deeplinks as $deeplink) {
             Tools_Content_Tools::applyDeeplinkPerPage($deeplink, $page);
         }
         //Application_Model_Mappers_ContainerMapper::getInstance()->save($this->_object);
     }
 }