示例#1
0
 /**
  * Build an URL containing the module/controller/action from the params in the request.
  *
  * @param $paramArray The params in the requestion ($this->getRequest()->getParams());
  * @return string
  * @change JTO - Appel unifi� de la g�n�ration d'url
  */
 protected function _buildUrlFromParams($paramArray)
 {
     $helper = new Sydney_View_Helper_SydneyUrl();
     return !empty($paramArray['page']) ? $helper->SydneyUrl($paramArray['page'], $paramArray['slug']) : null;
 }
示例#2
0
 /**
  * Retourne l'url généré d'un noeud en fonction des parametres fournis dans le fichier de config
  * @author JTO
  * @since 04/02/2014
  * @param array $node
  * @return string
  */
 public function getUrl($node)
 {
     $helper = new Sydney_View_Helper_SydneyUrl();
     return $helper->SydneyUrl($node['id'], $node['url']);
 }