添加网站文件

This commit is contained in:
2025-12-22 13:59:40 +08:00
commit 117aaf83d1
19468 changed files with 2111999 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\App
* @mixin \think\App
* @method \think\App bind(string $bind) static 绑定模块或者控制器
* @method void initialize() static 初始化应用
* @method void init(string $module='') static 初始化模块
* @method \think\Response run() static 执行应用
* @method \think\App dispatch(\think\route\Dispatch $dispatch) static 设置当前请求的调度信息
* @method void log(mixed $log, string $type = 'info') static 记录调试信息
* @method mixed config(string $name='') static 获取配置参数
* @method \think\route\Dispatch routeCheck() static URL路由检测根据PATH_INFO)
* @method \think\App routeMust(bool $must = false) static 设置应用的路由检测机制
* @method \think\Model model(string $name = '', string $layer = 'model', bool $appendSuffix = false, string $common = 'common') static 实例化模型
* @method object controller(string $name, string $layer = 'controller', bool $appendSuffix = false, string $empty = '') static 实例化控制器
* @method \think\Validate validate(string $name = '', string $layer = 'validate', bool $appendSuffix = false, string $common = 'common') static 实例化验证器类
* @method \think\db\Query db(mixed $config = [], mixed $name = false) static 数据库初始化
* @method mixed action(string $url, $vars = [], $layer = 'controller', $appendSuffix = false) static 调用模块的操作方法
* @method string parseClass(string $module, string $layer, string $name, bool $appendSuffix = false) static 解析应用类的类名
* @method string version() static 获取框架版本
* @method bool isDebug() static 是否为调试模式
* @method string getModulePath() static 获取当前模块路径
* @method void setModulePath(string $path) static 设置当前模块路径
* @method string getRootPath() static 获取应用根目录
* @method string getAppPath() static 获取应用类库目录
* @method string getRuntimePath() static 获取应用运行时目录
* @method string getThinkPath() static 获取核心框架目录
* @method string getRoutePath() static 获取路由目录
* @method string getConfigPath() static 获取应用配置目录
* @method string getConfigExt() static 获取配置后缀
* @method string setNamespace(string $namespace) static 设置应用类库命名空间
* @method string getNamespace() static 获取应用类库命名空间
* @method string getSuffix() static 是否启用类库后缀
* @method float getBeginTime() static 获取应用开启时间
* @method integer getBeginMem() static 获取应用初始内存占用
* @method \think\Container container() static 获取容器实例
*/
class App extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'app';
}
}

View File

@@ -0,0 +1,33 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Build
* @mixin \think\Build
* @method void run(array $build = [], string $namespace = 'app', bool $suffix = false) static 根据传入的build资料创建目录和文件
* @method void module(string $module = '', array $list = [], string $namespace = 'app', bool $suffix = false) static 创建模块
*/
class Build extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'build';
}
}

View File

@@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Cache
* @mixin \think\Cache
* @method \think\cache\Driver connect(array $options = [], mixed $name = false) static 连接缓存
* @method \think\cache\Driver init(array $options = []) static 初始化缓存
* @method \think\cache\Driver store(string $name = '') static 切换缓存类型
* @method bool has(string $name) static 判断缓存是否存在
* @method mixed get(string $name, mixed $default = false) static 读取缓存
* @method mixed pull(string $name) static 读取缓存并删除
* @method mixed set(string $name, mixed $value, int $expire = null) static 设置缓存
* @method mixed remember(string $name, mixed $value, int $expire = null) static 如果不存在则写入缓存
* @method mixed inc(string $name, int $step = 1) static 自增缓存(针对数值缓存)
* @method mixed dec(string $name, int $step = 1) static 自减缓存(针对数值缓存)
* @method bool rm(string $name) static 删除缓存
* @method bool clear(string $tag = null) static 清除缓存
* @method mixed tag(string $name, mixed $keys = null, bool $overlay = false) static 缓存标签
* @method object handler() static 返回句柄对象,可执行其它高级方法
*/
class Cache extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'cache';
}
}

View File

@@ -0,0 +1,39 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Config
* @mixin \think\Config
* @method array load(string $file, string $name = '') static 加载配置文件
* @method bool has(string $name) static 检测配置是否存在
* @method array pull(string $name) static 获取一级配置参数
* @method mixed get(string $name,mixed $default = null) static 获取配置参数
* @method array set(mixed $name, mixed $value = null) static 设置配置参数
* @method array reset(string $name ='') static 重置配置参数
* @method void remove(string $name = '') static 移除配置
* @method void setYaconf(mixed $yaconf) static 设置开启Yaconf 或者指定配置文件名
*/
class Config extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'config';
}
}

View File

@@ -0,0 +1,39 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Cookie
* @mixin \think\Cookie
* @method void init(array $config = []) static 初始化
* @method bool has(string $name,string $prefix = null) static 判断Cookie数据
* @method mixed prefix(string $prefix = '') static 设置或者获取cookie作用域前缀
* @method mixed get(string $name,string $prefix = null) static Cookie获取
* @method mixed set(string $name, mixed $value = null, mixed $option = null) static 设置Cookie
* @method void forever(string $name, mixed $value = null, mixed $option = null) static 永久保存Cookie数据
* @method void delete(string $name, string $prefix = null) static Cookie删除
* @method void clear($prefix = null) static Cookie清空
*/
class Cookie extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'cookie';
}
}

View File

@@ -0,0 +1,40 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Debug
* @mixin \think\Debug
* @method void remark(string $name, mixed $value = '') static 记录时间(微秒)和内存使用情况
* @method int getRangeTime(string $start, string $end, mixed $dec = 6) static 统计某个区间的时间(微秒)使用情况
* @method int getUseTime(int $dec = 6) static 统计从开始到统计时的时间(微秒)使用情况
* @method string getThroughputRate(string $start, string $end, mixed $dec = 6) static 获取当前访问的吞吐率情况
* @method string getRangeMem(string $start, string $end, mixed $dec = 2) static 记录区间的内存使用情况
* @method int getUseMem(int $dec = 2) static 统计从开始到统计时的内存使用情况
* @method string getMemPeak(string $start, string $end, mixed $dec = 2) static 统计区间的内存峰值情况
* @method mixed getFile(bool $detail = false) static 获取文件加载信息
* @method mixed dump(mixed $var, bool $echo = true, string $label = null, int $flags = ENT_SUBSTITUTE) static 浏览器友好的变量输出
*/
class Debug extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'debug';
}
}

View File

@@ -0,0 +1,34 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Env
* @mixin \think\Env
* @method void load(string $file) static 读取环境变量定义文件
* @method mixed get(string $name = null, mixed $default = null) static 获取环境变量值
* @method void set(mixed $env, string $value = null) static 设置环境变量值
*/
class Env extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'env';
}
}

View File

@@ -0,0 +1,37 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Hook
* @mixin \think\Hook
* @method \think\Hook alias(mixed $name, mixed $behavior = null) static 指定行为标识
* @method void add(string $tag, mixed $behavior, bool $first = false) static 动态添加行为扩展到某个标签
* @method void import(array $tags, bool $recursive = true) static 批量导入插件
* @method array get(string $tag = '') static 获取插件信息
* @method mixed listen(string $tag, mixed $params = null, bool $once = false) static 监听标签的行为
* @method mixed exec(mixed $class, mixed $params = null) static 执行行为
*/
class Hook extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'hook';
}
}

View File

@@ -0,0 +1,41 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Lang
* @mixin \think\Lang
* @method mixed range($range = '') static 设定当前的语言
* @method mixed set(mixed $name, string $value = null, string $range = '') static 设置语言定义
* @method array load(mixed $file, string $range = '') static 加载语言定义
* @method mixed get(string $name = null, array $vars = [], string $range = '') static 获取语言定义
* @method mixed has(string $name, string $range = '') static 获取语言定义
* @method string detect() static 自动侦测设置获取语言选择
* @method void saveToCookie(string $lang = null) static 设置当前语言到Cookie
* @method void setLangDetectVar(string $var) static 设置语言自动侦测的变量
* @method void setLangCookieVar(string $var) static 设置语言的cookie保存变量
* @method void setAllowLangList(array $list) static 设置允许的语言列表
*/
class Lang extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'lang';
}
}

View File

@@ -0,0 +1,50 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Log
* @mixin \think\Log
* @method \think\Log init(array $config = []) static 日志初始化
* @method mixed getLog(string $type = '') static 获取日志信息
* @method \think\Log record(mixed $msg, string $type = 'info', array $context = []) static 记录日志信息
* @method \think\Log clear() static 清空日志信息
* @method \think\Log key(string $key) static 当前日志记录的授权key
* @method \think\Log close() static 关闭本次请求日志写入
* @method bool check(array $config) static 检查日志写入权限
* @method bool save() static 保存调试信息
* @method void write(mixed $msg, string $type = 'info', bool $force = false) static 实时写入日志信息
* @method void log(string $level,mixed $message, array $context = []) static 记录日志信息
* @method void emergency(mixed $message, array $context = []) static 记录emergency信息
* @method void alert(mixed $message, array $context = []) static 记录alert信息
* @method void critical(mixed $message, array $context = []) static 记录critical信息
* @method void error(mixed $message, array $context = []) static 记录error信息
* @method void warning(mixed $message, array $context = []) static 记录warning信息
* @method void notice(mixed $message, array $context = []) static 记录notice信息
* @method void info(mixed $message, array $context = []) static 记录info信息
* @method void debug(mixed $message, array $context = []) static 记录debug信息
* @method void sql(mixed $message, array $context = []) static 记录sql信息
*/
class Log extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'log';
}
}

View File

@@ -0,0 +1,36 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Middleware
* @mixin \think\Middleware
* @method void import(array $middlewares = []) static 批量设置中间件
* @method void add(mixed $middleware) static 添加中间件到队列
* @method void unshift(mixed $middleware) static 添加中间件到队列开头
* @method array all() static 获取中间件队列
* @method \think\Response dispatch(\think\Request $request) static 执行中间件调度
*/
class Middleware extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'middleware';
}
}

View File

@@ -0,0 +1,97 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Request
* @mixin \think\Request
* @method void hook(mixed $method, mixed $callback = null) static Hook 方法注入
* @method \think\Request create(string $uri, string $method = 'GET', array $params = [], array $cookie = [], array $files = [], array $server = [], string $content = null) static 创建一个URL请求
* @method mixed domain(bool $port = false) static 获取当前包含协议、端口的域名
* @method mixed url(bool $domain = false) static 获取当前完整URL
* @method mixed baseUrl(bool $domain = false) static 获取当前URL
* @method mixed baseFile(bool $domain = false) static 获取当前执行的文件
* @method mixed root(bool $domain = false) static 获取URL访问根地址
* @method string rootUrl() static 获取URL访问根目录
* @method string pathinfo() static 获取当前请求URL的pathinfo信息含URL后缀
* @method string path() static 获取当前请求URL的pathinfo信息(不含URL后缀)
* @method string ext() static 当前URL的访问后缀
* @method float time(bool $float = false) static 获取当前请求的时间
* @method mixed type() static 当前请求的资源类型
* @method void mimeType(mixed $type, string $val = '') static 设置资源类型
* @method string method(bool $method = false) static 当前的请求类型
* @method bool isGet() static 是否为GET请求
* @method bool isPost() static 是否为POST请求
* @method bool isPut() static 是否为PUT请求
* @method bool isDelete() static 是否为DELTE请求
* @method bool isHead() static 是否为HEAD请求
* @method bool isPatch() static 是否为PATCH请求
* @method bool isOptions() static 是否为OPTIONS请求
* @method bool isCli() static 是否为cli
* @method bool isCgi() static 是否为cgi
* @method mixed param(string $name = '', mixed $default = null, mixed $filter = '') static 获取当前请求的参数
* @method mixed route(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取路由参数
* @method mixed get(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取GET参数
* @method mixed post(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取POST参数
* @method mixed put(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取PUT参数
* @method mixed delete(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取DELETE参数
* @method mixed patch(string $name = '', mixed $default = null, mixed $filter = '') static 设置获取PATCH参数
* @method mixed request(string $name = '', mixed $default = null, mixed $filter = '') static 获取request变量
* @method mixed session(string $name = '', mixed $default = null, mixed $filter = '') static 获取session数据
* @method mixed cookie(string $name = '', mixed $default = null, mixed $filter = '') static 获取cookie参数
* @method mixed server(string $name = '', mixed $default = null, mixed $filter = '') static 获取server参数
* @method mixed env(string $name = '', mixed $default = null, mixed $filter = '') static 获取环境变量
* @method mixed file(string $name = '') static 获取上传的文件信息
* @method mixed header(string $name = '', mixed $default = null) static 设置或者获取当前的Header
* @method mixed input(array $data,mixed $name = '', mixed $default = null, mixed $filter = '') static 获取变量 支持过滤和默认值
* @method mixed filter(mixed $filter = null) static 设置或获取当前的过滤规则
* @method mixed has(string $name, string $type = 'param', bool $checkEmpty = false) static 是否存在某个请求参数
* @method mixed only(mixed $name, string $type = 'param') static 获取指定的参数
* @method mixed except(mixed $name, string $type = 'param') static 排除指定参数获取
* @method bool isSsl() static 当前是否ssl
* @method bool isAjax(bool $ajax = false) static 当前是否Ajax请求
* @method bool isPjax(bool $pjax = false) static 当前是否Pjax请求
* @method mixed ip(int $type = 0, bool $adv = true) static 获取客户端IP地址
* @method bool isMobile() static 检测是否使用手机访问
* @method string scheme() static 当前URL地址中的scheme参数
* @method string query() static 当前请求URL地址中的query参数
* @method string host(bool $stric = false) static 当前请求的host
* @method string port() static 当前请求URL地址中的port参数
* @method string protocol() static 当前请求 SERVER_PROTOCOL
* @method string remotePort() static 当前请求 REMOTE_PORT
* @method string contentType() static 当前请求 HTTP_CONTENT_TYPE
* @method array routeInfo() static 获取当前请求的路由信息
* @method array dispatch() static 获取当前请求的调度信息
* @method string module() static 获取当前的模块名
* @method string controller(bool $convert = false) static 获取当前的控制器名
* @method string action(bool $convert = false) static 获取当前的操作名
* @method string langset() static 获取当前的语言
* @method string getContent() static 设置或者获取当前请求的content
* @method string getInput() static 获取当前请求的php://input
* @method string token(string $name = '__token__', mixed $type = 'md5') static 生成请求令牌
* @method string cache(string $key, mixed $expire = null, array $except = [], string $tag = null) static 设置当前地址的请求缓存
* @method string getCache() static 读取请求缓存设置
*/
class Request extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'request';
}
}

View File

@@ -0,0 +1,47 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Response
* @mixin \think\Response
* @method \think\response create(mixed $data = '', string $type = '', int $code = 200, array $header = [], array $options = []) static 创建Response对象
* @method void send() static 发送数据到客户端
* @method \think\Response options(mixed $options = []) static 输出的参数
* @method \think\Response data(mixed $data) static 输出数据设置
* @method \think\Response header(mixed $name, string $value = null) static 设置响应头
* @method \think\Response content(mixed $content) static 设置页面输出内容
* @method \think\Response code(int $code) static 发送HTTP状态
* @method \think\Response lastModified(string $time) static LastModified
* @method \think\Response expires(string $time) static expires
* @method \think\Response eTag(string $eTag) static eTag
* @method \think\Response cacheControl(string $cache) static 页面缓存控制
* @method \think\Response contentType(string $contentType, string $charset = 'utf-8') static 页面输出类型
* @method mixed getHeader(string $name) static 获取头部信息
* @method mixed getData() static 获取原始数据
* @method mixed getContent() static 获取输出数据
* @method int getCode() static 获取状态码
*/
class Response extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'response';
}
}

View File

@@ -0,0 +1,57 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Route
* @mixin \think\Route
* @method \think\route\Domain domain(mixed $name, mixed $rule = '', array $option = [], array $pattern = []) static 注册域名路由
* @method \think\Route pattern(mixed $name, string $rule = '') static 注册变量规则
* @method \think\Route option(mixed $name, mixed $value = '') static 注册路由参数
* @method \think\Route bind(string $bind) static 设置路由绑定
* @method mixed getBind(string $bind) static 读取路由绑定
* @method \think\Route name(string $name) static 设置当前路由标识
* @method mixed getName(string $name) static 读取路由标识
* @method void setName(string $name) static 批量导入路由标识
* @method void import(array $rules, string $type = '*') static 导入配置文件的路由规则
* @method \think\route\RuleItem rule(string $rule, mixed $route, string $method = '*', array $option = [], array $pattern = []) static 注册路由规则
* @method void rules(array $rules, string $method = '*', array $option = [], array $pattern = []) static 批量注册路由规则
* @method \think\route\RuleGroup group(string|array $name, mixed $route, string $method = '*', array $option = [], array $pattern = []) static 注册路由分组
* @method \think\route\RuleItem any(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\RuleItem get(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\RuleItem post(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\RuleItem put(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\RuleItem delete(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\RuleItem patch(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册路由
* @method \think\route\Resource resource(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册资源路由
* @method \think\Route controller(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册控制器路由
* @method \think\Route alias(string $rule, mixed $route, array $option = [], array $pattern = []) static 注册别名路由
* @method \think\Route setMethodPrefix(mixed $method, string $prefix = '') static 设置不同请求类型下面的方法前缀
* @method \think\Route rest(string $name, array $resource = []) static rest方法定义和修改
* @method \think\Route\RuleItem miss(string $route, string $method = '*', array $option = []) static 注册未匹配路由规则后的处理
* @method \think\Route\RuleItem auto(string $route) static 注册一个自动解析的URL路由
* @method \think\Route\Dispatch check(string $url, string $depr = '/', bool $must = false, bool $completeMatch = false) static 检测URL路由
*/
class Route extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'route';
}
}

View File

@@ -0,0 +1,46 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Session
* @mixin \think\Session
* @method void init(array $config = []) static session初始化
* @method bool has(string $name,string $prefix = null) static 判断session数据
* @method mixed prefix(string $prefix = '') static 设置或者获取session作用域前缀
* @method mixed get(string $name = '',string $prefix = null) static session获取
* @method mixed pull(string $name,string $prefix = null) static session获取并删除
* @method void push(string $key, mixed $value) static 添加数据到一个session数组
* @method void set(string $name, mixed $value , string $prefix = null) static 设置session数据
* @method void flash(string $name, mixed $value = null) static session设置 下一次请求有效
* @method void flush() static 清空当前请求的session数据
* @method void delete(string $name, string $prefix = null) static 删除session数据
* @method void clear($prefix = null) static 清空session数据
* @method void start() static 启动session
* @method void destroy() static 销毁session
* @method void pause() static 暂停session
* @method void regenerate(bool $delete = false) static 重新生成session_id
*/
class Session extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'session';
}
}

View File

@@ -0,0 +1,36 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Template
* @mixin \think\Template
* @method void assign(mixed $name, mixed $value = '') static 模板变量赋值
* @method mixed get(string $name = '') static 获取模板变量
* @method void fetch(string $template, array $vars = [], array $config = []) static 渲染模板文件
* @method void display(string $content, array $vars = [], array $config = []) static 渲染模板内容
* @method mixed layout(string $name, string $replace = '') static 设置模板布局
*/
class Template extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'template';
}
}

View File

@@ -0,0 +1,33 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Url
* @mixin \think\Url
* @method string build(string $url = '', mixed $vars = '', mixed $suffix = true, mixed $domain = false) static URL生成 支持路由反射
* @method void root(string $root) static 指定当前生成URL地址的root
*/
class Url extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'url';
}
}

View File

@@ -0,0 +1,75 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Validate
* @mixin \think\Validate
* @method \think\Validate make(array $rules = [], array $message = [], array $field = []) static 创建一个验证器类
* @method \think\Validate rule(mixed $name, mixed $rule = '') static 添加字段验证规则
* @method void extend(string $type, mixed $callback = null) static 注册扩展验证(类型)规则
* @method void setTypeMsg(mixed $type, string $msg = null) static 设置验证规则的默认提示信息
* @method \think\Validate message(mixed $name, string $message = '') static 设置提示信息
* @method \think\Validate scene(string $name) static 设置验证场景
* @method bool hasScene(string $name) static 判断是否存在某个验证场景
* @method \think\Validate batch(bool $batch = true) static 设置批量验证
* @method \think\Validate only(array $fields) static 指定需要验证的字段列表
* @method \think\Validate remove(mixed $field, mixed $rule = true) static 移除某个字段的验证规则
* @method \think\Validate append(mixed $field, mixed $rule = null) static 追加某个字段的验证规则
* @method bool confirm(mixed $value, mixed $rule, array $data = [], string $field = '') static 验证是否和某个字段的值一致
* @method bool different(mixed $value, mixed $rule, array $data = []) static 验证是否和某个字段的值是否不同
* @method bool egt(mixed $value, mixed $rule, array $data = []) static 验证是否大于等于某个值
* @method bool gt(mixed $value, mixed $rule, array $data = []) static 验证是否大于某个值
* @method bool elt(mixed $value, mixed $rule, array $data = []) static 验证是否小于等于某个值
* @method bool lt(mixed $value, mixed $rule, array $data = []) static 验证是否小于某个值
* @method bool eq(mixed $value, mixed $rule) static 验证是否等于某个值
* @method bool must(mixed $value, mixed $rule) static 必须验证
* @method bool is(mixed $value, mixed $rule, array $data = []) static 验证字段值是否为有效格式
* @method bool ip(mixed $value, mixed $rule) static 验证是否有效IP
* @method bool requireIf(mixed $value, mixed $rule) static 验证某个字段等于某个值的时候必须
* @method bool requireCallback(mixed $value, mixed $rule,array $data) static 通过回调方法验证某个字段是否必须
* @method bool requireWith(mixed $value, mixed $rule, array $data) static 验证某个字段有值的情况下必须
* @method bool filter(mixed $value, mixed $rule) static 使用filter_var方式验证
* @method bool in(mixed $value, mixed $rule) static 验证是否在范围内
* @method bool notIn(mixed $value, mixed $rule) static 验证是否不在范围内
* @method bool between(mixed $value, mixed $rule) static between验证数据
* @method bool notBetween(mixed $value, mixed $rule) static 使用notbetween验证数据
* @method bool length(mixed $value, mixed $rule) static 验证数据长度
* @method bool max(mixed $value, mixed $rule) static 验证数据最大长度
* @method bool min(mixed $value, mixed $rule) static 验证数据最小长度
* @method bool after(mixed $value, mixed $rule) static 验证日期
* @method bool before(mixed $value, mixed $rule) static 验证日期
* @method bool expire(mixed $value, mixed $rule) static 验证有效期
* @method bool allowIp(mixed $value, mixed $rule) static 验证IP许可
* @method bool denyIp(mixed $value, mixed $rule) static 验证IP禁用
* @method bool regex(mixed $value, mixed $rule) static 使用正则验证数据
* @method bool token(mixed $value, mixed $rule) static 验证表单令牌
* @method bool dateFormat(mixed $value, mixed $rule) static 验证时间和日期是否符合指定格式
* @method bool unique(mixed $value, mixed $rule, array $data = [], string $field = '') static 验证是否唯一
* @method bool check(array $data, mixed $rules = [], string $scene = '') static 数据自动验证
* @method mixed getError(mixed $value, mixed $rule) static 获取错误信息
*/
class Validate extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'validate';
}
}

View File

@@ -0,0 +1,40 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\View
* @mixin \think\View
* @method \think\View init(mixed $engine = [], array $replace = []) static 初始化
* @method \think\View share(mixed $name, mixed $value = '') static 模板变量静态赋值
* @method \think\View assign(mixed $name, mixed $value = '') static 模板变量赋值
* @method \think\View config(mixed $name, mixed $value = '') static 配置模板引擎
* @method \think\View exists(mixed $name) static 检查模板是否存在
* @method \think\View filter(Callable $filter) static 视图内容过滤
* @method \think\View engine(mixed $engine = []) static 设置当前模板解析的引擎
* @method string fetch(string $template = '', array $vars = [], array $config = [], bool $renderContent = false) static 解析和获取模板内容
* @method string display(string $content = '', array $vars = [], array $config = []) static 渲染内容输出
*/
class View extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'view';
}
}