Source for file administrator.php

Documentation is available at administrator.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  Router
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('JPATH_BASE'or die;
  11.  
  12. /**
  13.  * Class to create and parse routes
  14.  *
  15.  * @package     Joomla.Libraries
  16.  * @subpackage  Router
  17.  * @since       1.5
  18.  */
  19. class JRouterAdministrator extends JRouter
  20. {
  21.     /**
  22.      * Function to convert a route to an internal URI.
  23.      *
  24.      * @param   JUri  &$uri  The uri.
  25.      *
  26.      * @return  array 
  27.      *
  28.      * @since   1.5
  29.      */
  30.     public function parse(&$uri)
  31.     {
  32.         return array();
  33.     }
  34.  
  35.     /**
  36.      * Function to convert an internal URI to a route
  37.      *
  38.      * @param   string  $url  The internal URL
  39.      *
  40.      * @return  string  The absolute search engine friendly URL
  41.      *
  42.      * @since   1.5
  43.      */
  44.     public function build($url)
  45.     {
  46.         // Create the URI object
  47.         $uri parent::build($url);
  48.  
  49.         // Get the path data
  50.         $route $uri->getPath();
  51.  
  52.         // Add basepath to the uri
  53.         $uri->setPath(JUri::base(true'/' $route);
  54.  
  55.         return $uri;
  56.     }
  57. }

Documentation generated on Tue, 19 Nov 2013 14:53:36 +0100 by phpDocumentor 1.4.3