5 Star 15 Fork 9

Gitee 极速下载/Yaf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/laruence/yaf
克隆/下载
yaf_route.stub.php 2.95 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/** @generate-legacy-arginfo */
Interface Yaf_Route_Interface {
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
abstract public function route($request);
/**
* @return string|bool
*/
abstract public function assemble(array $info, array $query = NULL);
}
final class Yaf_Route_Static implements Yaf_Route_Interface {
public function match(string $uri):bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Supervar implements Yaf_Route_Interface {
/* constants */
/* properties */
protected string $_var_name = NULL;
/* methods */
public function __construct(string $supervar_name) {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request);
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Simple implements Yaf_Route_Interface {
/* constants */
/* properties */
protected string $controller = NULL;
protected string $module = NULL;
protected string $action = NULL;
/* methods */
public function __construct(string $module_name, string $controller_name, string $action_name) {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request);
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Rewrite implements Yaf_Route_Interface {
/* constants */
/* properties */
protected array $_route = NULL;
protected array $_verify = NULL;
/* methods */
public function __construct(string $match, array $route, array $verify = NULL) { }
public function match(string $uri):?bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Regex implements Yaf_Route_Interface {
/* constants */
/* properties */
protected array $_route = NULL;
protected array $_maps = NULL;
protected array $_verify = NULL;
/* methods */
public function __construct(string $match, array $route, array $map = NULL, array $verify = NULL, string $reverse = NULL) {}
public function match(string $uri):?bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Map implements Yaf_Route_Interface {
/* constants */
/* properties */
protected bool $_ctl_router = 1;
protected string $_delimiter = NULL;
/* methods */
public function __construct(bool $controller_prefer = 1, string $delimiter = "") {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Yaf1.git
git@gitee.com:mirrors/Yaf1.git
mirrors
Yaf1
Yaf
master

搜索帮助