joomla_test/components/com_wrapper/router.php

40 lines
605 B
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @package Joomla.Site
* @subpackage com_wrapper
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* @param array
* @return array
*/
function WrapperBuildRoute(&$query)
{
$segments = array();
if (isset($query['view']))
{
unset($query['view']);
}
return $segments;
}
/**
* @param array
* @return array
*/
function WrapperParseRoute($segments)
{
$vars = array();
$vars['view'] = 'wrapper';
return $vars;
}