[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_search/ -> router.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: router.php 16385 2010-04-23 10:44:15Z ian $
   4   * @package        Joomla
   5   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   6   * @license        GNU/GPL, see LICENSE.php
   7   * Joomla! is free software. This version may have been modified pursuant
   8   * to the GNU General Public License, and as distributed it includes or
   9   * is derivative of works licensed under the GNU General Public License or
  10   * other free or open source software licenses.
  11   * See COPYRIGHT.php for copyright notices and details.
  12   */
  13  
  14  /**
  15   * @param    array
  16   * @return    array
  17   */
  18  function SearchBuildRoute( &$query )
  19  {
  20      $segments = array();
  21  
  22      if (isset($query['view'])) {
  23          unset($query['view']);
  24      }
  25      return $segments;
  26  }
  27  
  28  /**
  29   * @param    array
  30   * @return    array
  31   */
  32  function SearchParseRoute( $segments )
  33  {
  34      $vars = array();
  35  
  36      $searchword    = array_shift($segments);
  37      $vars['searchword'] = $searchword;
  38      $vars['view'] = 'search';
  39  
  40      return $vars;
  41  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1