Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.0 KiB

12 years ago
<?php
/**
* UrlManager class file
*
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\web;
use yii\base\Object;
/**
* UrlManager manages the URLs of Yii applications.
12 years ago
* array(
* 'pattern' => 'post/<id:\d+>',
* 'route' => 'post/view',
* 'params' => array('id' => 1),
* )
12 years ago
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class UrlRule extends Object
{
/**
12 years ago
* @var string regular expression used to parse a URL
12 years ago
*/
12 years ago
public $pattern;
12 years ago
/**
* @var array the default GET parameters (name=>value) that this rule provides.
* When this rule is used to parse the incoming request, the values declared in this property
* will be injected into $_GET.
*/
public $params = array();
/**
12 years ago
* @var string the route to the controller action
12 years ago
*/
12 years ago
public $route;
public function createUrl($route, $params, $ampersand)
{
}
public function parse($path)
{
$route = '';
$params = array();
return array($route, $params);
}
12 years ago
}