public function viewAction()
 {
     $name = $this->_getParam('name');
     $proxy = new SxModule_Topcontentblock_Proxy();
     $block = $proxy->getByBlockname($name, $_SESSION['System']['lng']);
     $this->view->spacer = $this->_getParam('spacer');
     $this->view->block = $block;
 }
 public function deleteAction()
 {
     SxCms_Acl::requireAcl('topcontentblock', 'topcontentblock.delete');
     $proxy = new SxModule_Topcontentblock_Proxy();
     $item = $proxy->getById((int) $this->_getParam('id'));
     $item->delete();
     $flashMessenger = $this->_helper->getHelper('FlashMessenger');
     $flashMessenger->addMessage($this->admin_tmx->_('itemdeleted'));
     $this->_helper->redirector->gotoSimple('index', 'topcontentblock');
 }
Exemplo n.º 3
0
 public function getByName($name, $lng = 'nl')
 {
     $proxy = new SxModule_Topcontentblock_Proxy();
     return $proxy->getByBlockname($name, $lng);
 }