Esempio n. 1
0
 /**
  * Get a route based on a full or partial query string.
  *
  * This function force the route to be not fully qualified and not escaped
  *
  * @param   string  $route   The query string used to create the route
  * @param   boolean $fqr     If TRUE create a fully qualified route. Default FALSE.
  * @param   boolean $escape  If TRUE escapes the route for xml compliance. Default FALSE.
  * @return  string  The route
  */
 public function getRoute($route = '', $fqr = null, $escape = null)
 {
     //If not set force to false
     if ($escape === null) {
         $escape = false;
     }
     return parent::getRoute($route, $fqr, $escape);
 }
Esempio n. 2
0
 /**
  * Get a route based on a full or partial query string.
  *
  * This function adds the layout information to the route if a layout has been set
  *
  * @param string $route   The query string used to create the route
  * @param boolean $fqr    If TRUE create a fully qualified route. Default TRUE.
  * @param boolean $escape If TRUE escapes the route for xml compliance. Default TRUE.
  * @return  string The route
  */
 public function getRoute($route = '', $fqr = null, $escape = null)
 {
     $route = parent::getRoute($route, $fqr, $escape);
     if (!isset($route->query['layout']) && !empty($this->_layout)) {
         if ($route->query['view'] == $this->getName()) {
             $route->query['layout'] = $this->getLayout();
         }
     }
     return $route;
 }