Example #1
0
 /**
  * Sets action helper for assembling URLs
  *
  * @see getHref()
  *
  * @param  \Zend\Controller\Action\Helper\Url $uh  URL helper
  * @return void
  */
 public static function setUrlHelper(\Zend\Controller\Action\Helper\Url $uh)
 {
     self::$_urlHelper = $uh;
 }
Example #2
0
 /**
  * Sets the default view helper for assembling URLs.
  *
  * @see getHref()
  * @param  null|UrlHelper $helper  URL helper
  * @return void
  */
 public static function setDefaultUrlHelper($helper)
 {
     self::$defaultUrlHelper = $helper;
 }
Example #3
0
 /**
  * Sets the default router for assembling URLs.
  *
  * @see getHref()
  * @param  RouteStackInterface $router Router
  * @return void
  */
 public static function setDefaultRouter($router)
 {
     self::$defaultRouter = $router;
 }