/**
  * Add the link add video link to actionLinks
  * @param Zend_Controller_Action $this
  * @return X_Page_ItemList_ActionLink
  */
 public function getIndexActionLinks(Zend_Controller_Action $controller)
 {
     $link = new X_Page_Item_ActionLink($this->getId(), X_Env::_('p_onlinelibrary_actionaddvideo'));
     $link->setIcon('/images/plus.png')->setLink(array('controller' => 'onlinelibrary', 'action' => 'add'), 'default', true);
     return new X_Page_ItemList_ActionLink(array($link));
 }
Exemplo n.º 2
0
 /**
  * Add the link Add new shared folder link to actionLinks
  * @param Zend_Controller_Action $this
  * @return X_Page_ItemList_ActionLink
  */
 public function getIndexActionLinks(Zend_Controller_Action $controller)
 {
     $urlHelper = $controller->getHelper('url');
     $link = new X_Page_Item_ActionLink($this->getId(), X_Env::_('p_filesystem_actionadddirectory'));
     $link->setIcon('/images/plus.png')->setLink(array('controller' => 'filesystem', 'action' => 'add'), 'default', true);
     return new X_Page_ItemList_ActionLink(array($link));
 }
Exemplo n.º 3
0
 /**
  * Add the link "backup all systems" actionLinks
  * @param Zend_Controller_Action $this
  * @return X_Page_ItemList_ActionLink
  */
 public function getIndexActionLinks(Zend_Controller_Action $controller)
 {
     $link = new X_Page_Item_ActionLink($this->getId(), X_Env::_('p_backupper_actionbackupall'));
     $link->setIcon('/images/backupper/backupall.png')->setLink(array('controller' => 'backupper', 'action' => 'backup', 'a' => 'all'), 'default', true);
     return new X_Page_ItemList_ActionLink(array($link));
 }
Exemplo n.º 4
0
 /**
  * Create a new X_Page_Item_ManageLink
  * @param string $key item key in the list
  * @param string $label item label
  * @param array|string $link an array of Route params
  */
 function __construct($key, $label, $link = array(), $route = 'default', $reset = false)
 {
     parent::__construct($key, $label, $link, $route, $reset);
     $this->subinfos = new X_Page_ItemList_ActionLink();
 }