_
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
_
- __include_file() - Function in namespace think
- 作用范围隔离
- __require_file() - Function in namespace think
A
- abort() - Function in namespace think function and constant
- 抛出HTTP异常
- acceptValue() - Method in class think\console\input\Option
- 是否可以设置值
- action() - Function in namespace think function and constant
- 调用模块的操作方法 参数格式 [模块/控制器/]操作
- action() - Method in class think\Request
- 设置或者获取当前的操作名
- action() - Method in class think\Loader
- 远程调用模块的操作方法 参数格式 [模块/控制器/]操作
- activeUrl() - Method in class think\Validate
- 验证是否为合格的域名或者IP 支持A,MX,NS,SOA,PTR,CNAME,AAAA,A6, SRV,NAPTR,TXT 或者 ANY类型
- add() - Method in class think\process\Builder
- 添加一个参数
- add() - Method in class think\Hook
- 动态添加行为扩展到某个标签
- add() - Method in class think\Console
- 添加一个指令
- addArgument() - Method in class think\console\input\Definition
- 添加一个参数
- addArgument() - Method in class think\console\Command
- 添加参数
- addArguments() - Method in class think\console\input\Definition
- 添加参数
- addClassMap() - Method in class think\Loader
- addClassMapCode() - Method in class think\console\command\optimize\Autoload
- addCommands() - Method in class think\Console
- 添加指令
- addDefaultCommands() - Method in class think\Console
- addEnvironmentVariables() - Method in class think\process\Builder
- 添加环境变量
- addErrorOutput() - Method in class think\Process
- 添加一行错误输出
- addNamespace() - Method in class think\Loader
- addNamespaceAlias() - Method in class think\Loader
- addOption() - Method in class think\console\Command
- 添加选项
- addOption() - Method in class think\console\input\Definition
- 添加一个选项
- addOptions() - Method in class think\console\input\Definition
- 添加选项
- addOutput() - Method in class think\Process
- 添加一行输出
- addUsage() - Method in class think\console\Command
- 添加用法介绍
- after() - Method in class think\Validate
- 验证日期
- alias() - Method in class think\db\Query
- 指定数据表别名
- alias() - Method in class think\Route
- 注册别名路由
- all() - Method in class think\model\Merge
- 查找所有记录
- all() - Method in class think\Collection
- all() - Method in class think\Model
- 查找所有记录
- all() - Method in class think\Console
- 获取所有的指令
- allowField() - Method in class think\Model
- 设置允许写入的字段
- allowIp() - Method in class think\Validate
- 验证IP许可
- any() - Method in class think\Route
- 注册路由
- App() - Class in namespace think
- App 应用管理
- APP_PATH() - Global in namespace think function and constant
- append() - Method in class think\Model
- 设置需要追加的输出属性
- appends() - Method in class think\Paginator
- 添加URL参数
- appError() - Method in class think\Error
- Error Handler
- appException() - Method in class think\Error
- Exception Handler
- apply() - Method in class think\console\output\formatter\Style
- 应用样式到文字
- appShutdown() - Method in class think\Error
- Shutdown Handler
- areOpen() - Method in class think\process\pipes\Unix
- 返回当前状态如果有打开的文件句柄或管道。
- areOpen() - Method in class think\process\pipes\Windows
- 返回当前状态如果有打开的文件句柄或管道。
- areOpen() - Method in class think\process\pipes\Pipes
- 返回当前状态如果有打开的文件句柄或管道。
- Argument() - Class in namespace think\console\input
- ask() - Method in class think\console\Output
- Ask() - Class in namespace think\console\output
- askHidden() - Method in class think\console\Output
- askQuestion() - Method in class think\console\Output
- assign() - Method in class think\Template
- 模板变量赋值
- assign() - Method in class think\response\View
- 模板变量赋值
- attach() - Method in class think\model\Relation
- 附加关联的一个中间表数据
- attachQuery() - Method in class think\model\Merge
- 附加查询表达式
- auto() - Method in class think\Route
- 注册一个自动解析的URL路由
- auto() - Method in class think\Model
- 设置自动完成的字段( 规则通过修改器定义)
- autoBuildVar() - Method in class Think\TagLib
- 自动识别构建变量
- autoCompleteData() - Method in class think\Model
- 数据自动完成
- autoload() - Method in class think\Loader
- Autoload() - Class in namespace think\console\command\optimize
- autoWriteTimestamp() - Method in class think\Model
- 自动写入时间戳
- avg() - Method in class think\db\Query
- AVG查询
B
- base() - Method in class traits\model\SoftDelete
- 查询默认不包含软删除数据
- baseFile() - Method in class think\Request
- 获取当前执行的文件 SCRIPT_NAME
- baseUrl() - Method in class think\Request
- 获取当前URL 不含QUERY_STRING
- batch() - Method in class think\Validate
- 设置批量验证
- batchQuery() - Method in class think\Connection
- 批处理执行SQL语句
批处理的指令都认为是execute操作
- batchQuery() - Method in class think\db\Query
- 批处理执行SQL语句
批处理的指令都认为是execute操作
- before() - Method in class think\Validate
- 验证日期
- behavior() - Method in class think\Validate
- 使用行为类验证
- belongsTo() - Method in class think\Model
- BELONGS TO 关联定义
- belongsTo() - Method in class think\model\Relation
- BELONGS TO 关联定义
- belongsToMany() - Method in class think\Model
- BELONGS TO MANY 关联定义
- belongsToMany() - Method in class think\model\Relation
- BELONGS TO MANY 关联定义
- belongsToManyQuery() - Method in class think\model\Relation
- BELONGS TO MANY 关联查询
- between() - Method in class think\Validate
- between验证数据
- bind() - Method in class think\db\Query
- 参数绑定
- bind() - Method in class think\console\Input
- 绑定实例
- bind() - Method in class think\Request
- 设置当前请求绑定的对象实例
- BindParamException() - Class in namespace think\db\exception
- PDO参数绑定异常
- bindToClass() - Method in class think\Route
- 绑定到类
- bindToController() - Method in class think\Route
- 绑定到控制器类
- bindToModule() - Method in class think\Route
- 绑定到模块/控制器
- bindToNamespace() - Method in class think\Route
- 绑定到命名空间
- bindValue() - Method in class think\Connection
- 参数绑定
支持 ['name'=>'value','id'=>123] 对应命名占位符
或者 ['value',123] 对应问号占位符
- block() - Method in class think\console\Output
- boot() - Method in class think\Session
- session自动启动或者初始化
- Bootstrap() - Class in namespace think\paginator\driver
- Buffer() - Class in namespace think\console\output\driver
- build() - Method in class think\Url
- URL生成 支持路由反射
- Build() - Class in namespace think\console\command
- Build() - Class in namespace think
- buildCacheContent() - Method in class think\console\command\optimize\Config
- buildCallback() - Method in class think\Process
- 建立 wait () 使用的回调。
- buildClass() - Method in class think\console\command\Make
- buildClosure() - Method in class think\console\command\optimize\Route
- buildCommon() - Method in class think\Build
- 创建模块的公共文件
- buildDataBaseSchema() - Method in class think\console\command\optimize\Schema
- builder() - Method in class think\db\Query
- 获取当前的builder实例对象
- Builder() - Class in namespace think\db
- Builder() - Class in namespace think\process
- buildFile() - Method in class think\Build
- 创建文件
- buildFragment() - Method in class think\Paginator
- 构造锚点字符串
- buildHello() - Method in class think\Build
- 创建模块的欢迎页面
- buildModelSchema() - Method in class think\console\command\optimize\Schema
- buildRouteCache() - Method in class think\console\command\optimize\Route
- buildSaveName() - Method in class think\File
- 获取保存文件名
- buildSql() - Method in class think\db\Query
- 创建子查询SQL
C
- cache() - Function in namespace think function and constant
- 缓存管理
- cache() - Method in class think\db\Query
- 查询缓存
- Cache() - Class in namespace think
- cache() - Method in class think\Request
- 读取或者设置缓存
- CACHE_PATH() - Global in namespace think function and constant
- cacheControl() - Method in class think\Response
- 页面缓存控制
- check() - Method in class think\Route
- 检测URL路由
- check() - Method in class think\template\driver\File
- 检查编译缓存是否有效
- check() - Method in class think\log\driver\Socket
- check() - Method in class think\File
- 检测上传文件
- check() - Method in class think\Validate
- 数据自动验证
- check() - Method in class think\Log
- 检查日志写入权限
- checkDomain() - Method in class think\Route
- 检测子域名部署
- checkExt() - Method in class think\File
- 检测上传文件后缀
- checkImg() - Method in class think\File
- 检测图像文件
- checkItem() - Method in class think\Validate
- 验证单个字段规则
- checkMime() - Method in class think\File
- 检测上传文件类型
- checkSize() - Method in class think\File
- 检测上传文件大小
- checkTimeout() - Method in class think\Process
- 是否超时
- Choice() - Class in namespace think\console\output\question
- choice() - Method in class think\console\Output
- chunk() - Method in class think\db\Query
- 分批数据返回处理
- chunk() - Method in class think\Collection
- 把一个数组分割为新的数组块.
- ClassNotFoundException() - Class in namespace think\exception
- clear() - Method in class think\cache\driver\Memcache
- 清除缓存
- clear() - Method in class think\cache\driver\Memcached
- 清除缓存
- clear() - Method in class think\cache\driver\Wincache
- 清除缓存
- clear() - Method in class think\Log
- 清空日志信息
- clear() - Method in class think\Cookie
- Cookie清空
- clear() - Method in class think\Cache
- 清除缓存
- Clear() - Class in namespace think\console\command
- clear() - Method in class think\cache\driver\Xcache
- 清除缓存
- clear() - Method in class think\cache\driver\Lite
- 清除缓存
- clear() - Method in class think\cache\Driver
- 清除缓存
- clear() - Method in class think\cache\driver\File
- 清除缓存
- clear() - Method in class think\Session
- 清空session数据
- clear() - Method in class think\cache\driver\Redis
- 清除缓存
- clear() - Method in class think\cache\driver\Sqlite
- 清除缓存
- clearErrorOutput() - Method in class think\Process
- 清空 errorOutput
- clearInstance() - Method in class think\Loader
- 初始化类的实例
- clearOutput() - Method in class think\Process
- 清空输出
- close() - Method in class think\Connection
- 关闭数据库
- close() - Method in class think\session\driver\Redis
- 关闭Session
- close() - Method in class think\process\pipes\Windows
- {@inheritdoc}
- close() - Method in class think\session\driver\Memcache
- 关闭Session
- close() - Method in class think\session\driver\Memcached
- 关闭Session
- close() - Method in class think\process\pipes\Pipes
- code() - Method in class think\Response
- 发送HTTP状态
- Collection() - Class in namespace think
- Collection() - Class in namespace think\paginator
- Class Collection
- column() - Method in class think\db\Query
- 得到某个列的数组
- column() - Method in class think\Collection
- 返回数组中指定的一列
- Command() - Class in namespace think\console
- comment() - Method in class think\db\Query
- 查询注释
- commit() - Method in class think\db\Query
- 用于非自动提交状态下面的查询提交
- commit() - Method in class think\Connection
- 用于非自动提交状态下面的查询提交
- CONF_EXT() - Global in namespace think function and constant
- CONF_PATH() - Global in namespace think function and constant
- config() - Method in class think\view\driver\Php
- 配置模板引擎
- config() - Method in class think\view\driver\Think
- 配置或者获取模板引擎参数
- Config() - Class in namespace think
- config() - Function in namespace think function and constant
- 获取和设置配置参数
- Config() - Class in namespace think\console\command\optimize
- config() - Method in class think\Template
- 模板引擎配置项
- configure() - Method in class think\console\command\optimize\Route
- 配置指令
- configure() - Method in class think\console\command\optimize\Schema
- 配置指令
- configure() - Method in class think\console\command\make\Controller
- 配置指令
- configure() - Method in class think\console\command\Clear
- 配置指令
- configure() - Method in class think\console\command\Help
- 配置指令
- configure() - Method in class think\console\command\make\Model
- 配置指令
- configure() - Method in class think\console\command\Build
- 配置指令
- configure() - Method in class think\console\command\optimize\Autoload
- 配置指令
- configure() - Method in class think\console\command\Lists
- 配置指令
- configure() - Method in class think\console\Command
- 配置指令
- configure() - Method in class think\console\command\Make
- 配置指令
- configure() - Method in class think\console\command\optimize\Config
- 配置指令
- configureIO() - Method in class think\Console
- 配置基于用户的参数和选项的输入和输出实例。
- confirm() - Method in class think\Validate
- 验证是否和某个字段的值一致
- confirm() - Method in class think\console\Output
- Confirmation() - Class in namespace think\console\output\question
- connect() - Method in class think\Connection
- 连接数据库方法
- connect() - Method in class think\db\Query
- 切换当前的数据库连接
- connect() - Method in class think\Db
- 数据库初始化 并取得数据库类实例
- connect() - Method in class think\Cache
- 连接缓存
- Connection() - Class in namespace think
- Class Connection
- Console() - Class in namespace think\console\output\driver
- Console() - Class in namespace think\debug
- 浏览器调试输出
- Console() - Class in namespace think\console\output\descriptor
- Console() - Class in namespace think
- content() - Method in class think\Response
- 设置页面输出内容
- contentType() - Method in class think\Response
- 页面输出类型
- Controller() - Class in namespace think
- controller() - Method in class think\Route
- 注册控制器路由 操作方法对应不同的请求后缀
- controller() - Function in namespace think function and constant
- 实例化控制器 格式:[模块/]控制器
- Controller() - Class in namespace think\console\command\make
- controller() - Method in class think\Request
- 设置或者获取当前的控制器名
- controller() - Method in class think\Loader
- 实例化(分层)控制器 格式:[模块名/]控制器名
- convertExceptionToResponse() - Method in class think\exception\Handle
- convertToArray() - Method in class think\Collection
- 转换成数组
- cookie() - Function in namespace think function and constant
- Cookie管理
- cookie() - Method in class think\Request
- 获取cookie参数
- Cookie() - Class in namespace think
- CORE_PATH() - Global in namespace think function and constant
- count() - Method in class think\db\Query
- COUNT查询
- count() - Method in class think\Collection
- create() - Method in class think\process\pipes\Windows
- 创建一个新的 WindowsPipes 实例。
- create() - Method in class think\Request
- 创建一个URL请求
- create() - Method in class think\Response
- 创建Response对象
- create() - Method in class think\process\pipes\Unix
- 创建一个新的 UnixPipes 实例
- create() - Method in class think\Model
- 写入数据
- create() - Method in class think\process\Builder
- 创建一个实例
- createMap() - Method in class think\console\command\optimize\Autoload
- currentPage() - Method in class think\Paginator
- Cx() - Class in namespace Think
- CX标签库解析类
D
- data() - Method in class think\Response
- 输出数据设置
- data() - Method in class think\Model
- 设置数据对象值
- DataNotFoundException() - Class in namespace think\db\exception
- dataToXml() - Method in class think\response\Xml
- 数据XML编码
- dateFormat() - Method in class think\Validate
- 验证时间和日期是否符合指定格式
- db() - Function in namespace think function and constant
- 实例化数据库类
- Db() - Class in namespace think
- Class Db
- db() - Method in class think\Loader
- 数据库初始化 并取得数据库类实例
- DbException() - Exception in namespace think\exception
- Database相关异常处理类
- debug() - Function in namespace think function and constant
- 记录时间(微秒)和内存使用情况
- Debug() - Class in namespace think
- debug() - Method in class think\Connection
- 数据库调试 记录当前SQL及分析性能
- dec() - Method in class think\cache\Driver
- 自减缓存(针对数值缓存)
- dec() - Method in class think\cache\driver\Xcache
- 自减缓存(针对数值缓存)
- dec() - Method in class think\cache\driver\Sqlite
- 自减缓存(针对数值缓存)
- dec() - Method in class think\cache\driver\File
- 自减缓存(针对数值缓存)
- dec() - Method in class think\cache\driver\Wincache
- 自减缓存(针对数值缓存)
- dec() - Method in class think\cache\driver\Lite
- 自减缓存(针对数值缓存)
- dec() - Method in class think\Cache
- 自减缓存(针对数值缓存)
- Definition() - Class in namespace think\console\input
- delete() - Method in class think\Route
- 注册DELETE路由
- delete() - Method in class think\db\Builder
- 生成delete SQL
- delete() - Method in class traits\model\SoftDelete
- 删除当前的记录
- delete() - Method in class think\Model
- 删除当前的记录
- delete() - Method in class think\Cookie
- Cookie删除
- delete() - Method in class think\db\Query
- 删除记录
- delete() - Method in class think\Request
- 设置获取获取DELETE参数
- delete() - Method in class think\model\Merge
- 删除当前的记录 并删除关联数据
- delete() - Method in class think\Session
- 删除session数据
- denyIp() - Method in class think\Validate
- 验证IP禁用
- describe() - Method in class think\console\output\Descriptor
- describe() - Method in class think\console\Output
- describeCommand() - Method in class think\console\output\Descriptor
- 描述指令
- describeConsole() - Method in class think\console\output\Descriptor
- 描述控制台
- describeInputArgument() - Method in class think\console\output\Descriptor
- 描述参数
- describeInputDefinition() - Method in class think\console\output\Descriptor
- 描述输入
- describeInputOption() - Method in class think\console\output\Descriptor
- 描述选项
- Descriptor() - Class in namespace think\console\output
- destroy() - Method in class think\session\driver\Redis
- 删除Session
- destroy() - Method in class think\Model
- 删除记录
- destroy() - Method in class think\session\driver\Memcached
- 删除Session
- destroy() - Method in class traits\model\SoftDelete
- 删除记录
- destroy() - Method in class think\Session
- 销毁session
- destroy() - Method in class think\session\driver\Memcache
- 删除Session
- detach() - Method in class think\model\Relation
- 解除关联的一个中间表数据
- detect() - Method in class think\Lang
- 自动侦测设置获取语言选择
- diff() - Method in class think\Collection
- 比较数组,返回差集
- different() - Method in class think\Validate
- 验证是否和某个字段的值是否不同
- disableOutput() - Method in class think\process\Builder
- 禁止输出
- disableOutput() - Method in class think\Process
- 禁用从底层过程获取输出和错误输出。
- dispatch() - Method in class think\App
- 设置当前请求的调度信息
- dispatch() - Method in class think\Request
- 设置或者获取当前请求的调度信息
- display() - Method in class think\view\driver\Php
- 渲染模板内容
- display() - Method in class think\View
- 渲染内容输出
- display() - Method in class think\view\driver\Think
- 渲染模板内容
- display() - Method in class think\Template
- 渲染模板内容
- distinct() - Method in class think\db\Query
- 指定distinct查询
- doAsk() - Method in class think\console\output\Ask
- domain() - Method in class think\Request
- 获取当前包含协议的域名
- doRunCommand() - Method in class think\Console
- 执行指令
- doWrite() - Method in class think\console\output\driver\Console
- 将消息写入到输出。
- Driver() - Class in namespace think\cache
- 缓存基础类
- DS() - Global in namespace think function and constant
- dump() - Function in namespace think function and constant
- 浏览器友好的变量输出
- dump() - Method in class think\Debug
- 浏览器友好的变量输出
E
- each() - Method in class think\Collection
- 给每个元素执行个回调
- eagerlyManyToMany() - Method in class think\model\Relation
- 多对多 关联模型预查询
- eagerlyOneToMany() - Method in class think\model\Relation
- 一对多 关联模型预查询
- eagerlyResult() - Method in class think\Model
- 预载入关联查询 返回模型对象
- eagerlyResult() - Method in class think\model\Relation
- 预载入关联查询 返回模型对象
- eagerlyResultSet() - Method in class think\model\Relation
- 预载入关联查询 返回数据集
- eagerlyResultSet() - Method in class think\Model
- 预载入关联查询 返回数据集
- egt() - Method in class think\Validate
- 验证是否大于等于某个值
- elt() - Method in class think\Validate
- 验证是否小于等于某个值
- enableOutput() - Method in class think\Process
- 开启从底层过程获取输出和错误输出。
- enableOutput() - Method in class think\process\Builder
- 开启输出
- engine() - Method in class think\Controller
- 初始化模板引擎
- env() - Global in namespace think function and constant
- Env() - Class in namespace think
- env() - Method in class think\Request
- 获取环境变量
- ENV_PREFIX() - Global in namespace think function and constant
- eq() - Method in class think\Validate
- 验证是否等于某个值
- equals() - Method in class think\console\input\Option
- 检查所给选项是否是当前这个
- error() - Method in class traits\controller\Jump
- 操作错误跳转的快捷方法
- Error() - Class in namespace think
- ErrorException() - Exception in namespace think\exception
- ThinkPHP错误异常
主要用于封装 set_error_handler 和 register_shutdown_function 得到的错误
除开从 think\Exception 继承的功能
其他和PHP系统\ErrorException功能基本一样
- escape() - Method in class think\console\output\Formatter
- 转义
- escapeArgument() - Method in class think\process\Utils
- 转义字符串
- escapeToken() - Method in class think\console\Input
- 转义指令
- eTag() - Method in class think\Response
- ETag
- event() - Method in class think\Model
- 注册回调方法
- except() - Method in class think\Request
- 排除指定参数获取
- exception() - Function in namespace think function and constant
- 抛出异常处理
- Exception() - Class in namespace think
- exec() - Method in class think\Hook
- 执行某个行为
- execute() - Method in class think\console\command\Lists
- 执行指令
- execute() - Method in class think\db\Query
- 执行语句
- execute() - Method in class think\console\command\optimize\Route
- 执行指令
- execute() - Method in class think\console\command\optimize\Autoload
- 执行指令
- execute() - Method in class think\console\command\optimize\Schema
- 执行指令
- execute() - Method in class think\Connection
- 执行语句
- execute() - Method in class think\console\command\Make
- 执行指令
- execute() - Method in class think\console\command\optimize\Config
- 执行指令
- execute() - Method in class think\console\Command
- 执行指令
- execute() - Method in class think\console\command\Help
- 执行指令
- execute() - Method in class think\console\command\Clear
- 执行指令
- execute() - Method in class think\console\command\Build
- 执行指令
- exists() - Method in class think\view\driver\Think
- 检测是否存在模板文件
- exists() - Method in class think\view\driver\Php
- 检测是否存在模板文件
- expire() - Method in class think\Validate
- 验证有效期
- expires() - Method in class think\Response
- Expires
- ext() - Method in class think\Request
- 当前URL的访问后缀
- EXT() - Global in namespace think function and constant
- extend() - Method in class think\Validate
- 注册验证(类型)规则
- EXTEND_PATH() - Global in namespace think function and constant
- extractNamespace() - Method in class think\Console
- 返回命名空间部分
F
- Failed() - Class in namespace think\process\exception
- failException() - Method in class think\db\Query
- 设置查询数据不存在是否抛出异常
- fetch() - Method in class think\console\output\driver\Buffer
- fetch() - Method in class think\View
- 解析和获取模板内容 用于输出
- fetch() - Method in class think\view\driver\Php
- 渲染模板文件
- fetch() - Method in class think\Template
- 渲染模板文件
- fetch() - Method in class think\view\driver\Think
- 渲染模板文件
- fetchClass() - Method in class think\db\Query
- 指定数据集返回对象
- fetchPdo() - Method in class think\db\Query
- 不主动获取数据集
- fetchSql() - Method in class think\db\Query
- 获取执行的SQL语句
- field() - Method in class think\db\Query
- 指定查询字段 支持字段排除和指定数据表
- fieldCase() - Method in class think\Connection
- 对返数据表字段信息进行大小写转换出来
- file() - Method in class think\Request
- 获取上传的文件信息
- File() - Class in namespace think\template\driver
- File() - Class in namespace think
- File() - Class in namespace think\cache\driver
- 文件类型缓存类
- File() - Class in namespace think\log\driver
- 本地化调试输出到文件
- fileExt() - Method in class think\Validate
- 验证上传文件后缀
- fileMime() - Method in class think\Validate
- 验证上传文件类型
- fileSize() - Method in class think\Validate
- 验证上传文件大小
- filter() - Method in class think\Collection
- 用回调函数过滤数组中的元素
- filter() - Method in class think\Validate
- 使用filter_var方式验证
- filter() - Method in class think\Request
- 设置或获取当前的过滤规则
- filterExp() - Method in class think\Request
- 过滤表单中的表达式
- find() - Method in class think\Console
- 查找指令
- find() - Method in class think\db\Query
- 查找单条记录
- findClasses() - Method in class think\console\command\optimize\Autoload
- findNamespace() - Method in class think\Console
- 查找注册命名空间中的名称或缩写。
- findOrFail() - Method in class think\db\Query
- 查找单条记录 如果不存在则抛出异常
- flip() - Method in class think\Collection
- 交换数组中的键和值
- force() - Method in class think\db\Query
- 指定强制索引
- format() - Method in class think\console\output\Formatter
- 使用所给的样式格式化文字
- Formatter() - Class in namespace think\console\output
- fragment() - Method in class think\Paginator
- 设置URL锚点
- free() - Method in class think\Connection
- 释放查询结果
G
- gc() - Method in class think\session\driver\Redis
- Session 垃圾回收
- gc() - Method in class think\session\driver\Memcache
- Session 垃圾回收
- gc() - Method in class think\session\driver\Memcached
- Session 垃圾回收
- get() - Method in class think\cache\driver\Lite
- 读取缓存
- get() - Method in class think\Lang
- 获取语言定义(不区分大小写)
- get() - Method in class think\Hook
- 获取插件信息
- get() - Method in class think\Env
- 获取环境变量值
- get() - Method in class think\cache\Driver
- 读取缓存
- get() - Method in class think\model\Merge
- 查找单条记录
- get() - Method in class think\Model
- 查找单条记录
- get() - Method in class think\Request
- 设置获取获取GET参数
- get() - Method in class think\Cookie
- Cookie获取
- get() - Method in class think\cache\driver\Xcache
- 读取缓存
- get() - Method in class think\Route
- 注册GET路由
- get() - Method in class think\Session
- session获取
- get() - Method in class think\Config
- 获取配置参数 为空则获取所有配置
- get() - Method in class think\Console
- 获取指令
- get() - Method in class think\Template
- 模板变量获取
- get() - Method in class think\Cache
- 读取缓存
- get() - Method in class think\cache\driver\Wincache
- 读取缓存
- getAbbreviations() - Method in class think\Console
- 获取可能的指令名
- getActivePageWrapper() - Method in class think\paginator\driver\Bootstrap
- 生成一个激活的按钮
- getAliases() - Method in class think\console\Command
- 获取别名
- getArgument() - Method in class think\console\Input
- 根据名称获取参数
- getArgument() - Method in class think\console\input\Definition
- 根据名称或者位置获取参数
- getArgumentCount() - Method in class think\console\input\Definition
- 获取参数数量
- getArgumentDefaults() - Method in class think\console\input\Definition
- 获取参数默认值
- getArgumentRequiredCount() - Method in class think\console\input\Definition
- 获取必填的参数的数量
- getArguments() - Method in class think\console\input\Definition
- 获取所有的参数
- getArguments() - Method in class think\console\Input
- 获取所有的参数
- getAttr() - Method in class think\Model
- 获取器 获取数据对象的值
- getAutocompleterValues() - Method in class think\console\output\Question
- 获取自动完成
- getAvailablePageWrapper() - Method in class think\paginator\driver\Bootstrap
- 生成一个可点击的按钮
- getBind() - Method in class think\db\Query
- 获取绑定的参数 并清空
- getBind() - Method in class think\Route
- 读取路由绑定
- getCache() - Method in class think\Request
- 读取缓存设置
- getCacheKey() - Method in class think\cache\Driver
- 获取实际的缓存标识
- getCacheKey() - Method in class think\cache\driver\Lite
- 取得变量的存储文件名
- getChoices() - Method in class think\console\output\question\Choice
- 可选项
- getClass() - Method in class think\exception\ClassNotFoundException
- 获取类名
- getClassName() - Method in class think\console\command\make\Controller
- getClassName() - Method in class think\console\command\Make
- getClientArg() - Method in class think\log\driver\Socket
- getCode() - Method in class think\exception\Handle
- 获取错误编码
ErrorException则使用错误级别作为错误编码
- getCode() - Method in class think\Response
- 获取状态码
- getCommandLine() - Method in class think\Process
- 获取被执行的指令
- getCommandName() - Method in class think\Console
- 获取指令的基础名称
- getConfig() - Method in class think\Connection
- 获取数据库的配置参数
- getConfig() - Method in class think\db\Query
- 获取数据库的配置参数
- getConnection() - Method in class think\db\Query
- 获取当前的数据库Connection对象
- getConsole() - Method in class think\console\Command
- 获取控制台
- getContent() - Method in class think\Response
- 获取输出数据
- getContent() - Method in class think\Request
- 设置或者获取当前请求的content
- getCurrent() - Method in class think\console\output\formatter\Stack
- 计算堆栈的当前样式。
- getCurrentPage() - Method in class think\Paginator
- 自动获取当前页码
- getCurrentPath() - Method in class think\Paginator
- 自动获取当前的path
- getData() - Method in class think\Exception
- 获取异常额外Debug数据
主要用于输出到异常页面便于调试
- getData() - Method in class think\Model
- 获取对象原始数据 如果不存在指定字段返回false
- getData() - Method in class think\Response
- 获取原始数据
- getDataValue() - Method in class think\Validate
- 获取数据值
- getDb() - Method in class think\Model
- getDefault() - Method in class think\console\output\Question
- 获取默认答案
- getDefault() - Method in class think\console\input\Option
- 获取默认值
- getDefault() - Method in class think\console\input\Argument
- 获取默认值
- getDefaultCommands() - Method in class think\Console
- 设置默认命令
- getDefaultInputDefinition() - Method in class think\Console
- 获取默认输入定义
- getDefinition() - Method in class think\console\Command
- 获取参数定义
- getDeleteTimeField() - Method in class traits\model\SoftDelete
- 获取软删除字段
- getDescription() - Method in class think\console\input\Option
- 获取描述文字
- getDescription() - Method in class think\console\Command
- 获取描述
- getDescription() - Method in class think\console\input\Argument
- 获取描述
- getDescriptors() - Method in class think\process\pipes\Pipes
- 返回用于 proc_open 描述符的数组
- getDescriptors() - Method in class think\process\pipes\Unix
- 返回用于 proc_open 描述符的数组
- getDescriptors() - Method in class think\process\pipes\Windows
- 返回用于 proc_open 描述符的数组
- getDisabledTextWrapper() - Method in class think\paginator\driver\Bootstrap
- 生成一个禁用的按钮
- getDots() - Method in class think\paginator\driver\Bootstrap
- 生成省略号按钮
- getEmptyStyle() - Method in class think\console\output\formatter\Stack
- getEnhanceSigchildCompatibility() - Method in class think\Process
- 返回是否 sigchild 兼容模式激活
- getEnhanceWindowsCompatibility() - Method in class think\Process
- 是否兼容windows
- getEnv() - Method in class think\Process
- 获取环境变量
- getError() - Method in class think\File
- 获取错误信息
- getError() - Method in class think\Connection
- 获取最近的错误信息
- getError() - Method in class think\Validate
- getError() - Method in class think\exception\ValidateException
- 获取验证错误信息
- getError() - Method in class think\Model
- 返回模型的错误信息
- getErrorOutput() - Method in class think\Process
- 返回当前的错误输出的过程 (STDERR)。
- getExceededTimeout() - Method in class think\process\exception\Timeout
- getExceptionHandler() - Method in class think\Error
- Get an instance of the exception handler.
- getExecuteTimes() - Method in class think\Connection
- 获得执行次数
- getExitCode() - Method in class think\Process
- 获取退出码
- getExitCodeText() - Method in class think\Process
- 获取退出文本
- getExplain() - Method in class think\db\connector\Sqlsrv
- SQL性能分析
- getExplain() - Method in class think\Connection
- SQL性能分析
- getExplain() - Method in class think\db\connector\Pgsql
- SQL性能分析
- getExplain() - Method in class think\db\connector\Sqlite
- SQL性能分析
- getExplain() - Method in class think\db\connector\Mysql
- SQL性能分析
- getExtendData() - Method in class think\exception\Handle
- 获取异常扩展信息
用于非调试模式html返回类型显示
- getFieldBindType() - Method in class think\db\Query
- 获取字段绑定类型
- getFields() - Method in class think\Connection
- 取得数据表的字段信息
- getFields() - Method in class think\db\connector\Pgsql
- 取得数据表的字段信息
- getFields() - Method in class think\db\connector\Sqlite
- 取得数据表的字段信息
- getFields() - Method in class think\db\connector\Mysql
- 取得数据表的字段信息
- getFields() - Method in class think\db\connector\Sqlsrv
- 取得数据表的字段信息
- getFieldsBind() - Method in class think\db\Query
- getFieldsType() - Method in class think\db\Query
- getFile() - Method in class think\Debug
- 获取文件加载信息
- getFiles() - Method in class think\process\pipes\Windows
- 返回一个数组的索引由其相关的流,以防这些管道使用的临时文件的文件名。
- getFiles() - Method in class think\process\pipes\Pipes
- 返回一个数组的索引由其相关的流,以防这些管道使用的临时文件的文件名。
- getFiles() - Method in class think\process\pipes\Unix
- 返回一个数组的索引由其相关的流,以防这些管道使用的临时文件的文件名。
- getFirstArgument() - Method in class think\console\Input
- 获取第一个参数
- getGroup() - Method in class think\Route
- 获取当前的分组信息
- getHeader() - Method in class think\Response
- 获取头部信息
- getHeaders() - Method in class think\exception\HttpException
- getHelp() - Method in class think\console\Command
- 获取帮助信息
- getHiddenResponse() - Method in class think\console\output\Ask
- getIdleTimeout() - Method in class think\Process
- 获取idle超时时间
- getImageType() - Method in class think\Validate
- getImageType() - Method in class think\File
- getIncrementalErrorOutput() - Method in class think\Process
- 以增量方式返回 errorOutput
- getIncrementalOutput() - Method in class think\Process
- 以增量方式返回的输出结果。
- getInput() - Method in class think\Process
- 获取输入
- getInput() - Method in class think\Request
- 获取当前请求的php://input
- getIterator() - Method in class think\Collection
- getLastInsID() - Method in class think\db\Query
- 获取最近插入的ID
- getLastInsID() - Method in class think\Connection
- 获取最近插入的ID
- getLastSql() - Method in class think\Connection
- 获取最近一次查询的sql语句
- getLastSql() - Method in class think\db\Query
- 获取最近一次查询的sql语句
- getLinks() - Method in class think\paginator\driver\Bootstrap
- 页码按钮
- getLog() - Method in class think\Log
- 获取日志信息
- getLongVersion() - Method in class think\Console
- 获取完整的版本号
- getMaxAttempts() - Method in class think\console\output\Question
- 获取最大重试次数
- getMemPeak() - Method in class think\Debug
- 统计区间的内存峰值情况
- getMessage() - Method in class think\exception\Handle
- 获取错误信息
ErrorException则使用错误级别作为错误编码
- getModel() - Method in class think\db\exception\ModelNotFoundException
- 获取模型类名
- getModelField() - Method in class think\model\Merge
- 获取关联模型的字段 并解决混淆
- getName() - Method in class think\console\input\Option
- 获取选项名
- getName() - Method in class think\console\Command
- 获取指令名称
- getName() - Method in class think\console\input\Argument
- 获取参数名
- getNamespace() - Method in class think\console\command\make\Model
- getNamespace() - Method in class think\console\command\make\Controller
- getNamespace() - Method in class think\console\command\Make
- getNamespaces() - Method in class think\Console
- 获取所有的命名空间
- getNativeDefinition() - Method in class think\console\Command
- 获取当前指令的参数定义
- getNativeDefinition() - Method in class think\console\command\Lists
- 获取当前指令的参数定义
- getNextButton() - Method in class think\paginator\driver\Bootstrap
- 下一页按钮
- getNormalizer() - Method in class think\console\output\Question
- 获取响应回调
The normalizer can ba a callable (a string), a closure or a class implementing __invoke.
- getNumRows() - Method in class think\Connection
- 获取返回或者影响的记录数
- getOption() - Method in class think\console\input\Definition
- 根据名称获取选项
- getOption() - Method in class think\console\Input
- 获取选项值
- getOptionDefaults() - Method in class think\console\input\Definition
- 获取所有选项的默认值
- getOptionForShortcut() - Method in class think\console\input\Definition
- 根据短名称获取选项
- getOptions() - Method in class think\console\input\Definition
- 获取所有选项
- getOptions() - Method in class think\db\Query
- 获取当前的查询参数
- getOptions() - Method in class think\console\Input
- 获取所有的选项
- getOptions() - Method in class think\Process
- 获取proc_open的选项
- getOutput() - Method in class think\Process
- 获取当前的输出管道
- getPageLinkWrapper() - Method in class think\paginator\driver\Bootstrap
- 生成普通页码按钮
- getParameterOption() - Method in class think\console\Input
- 获取原始选项的值
- getPartitionTableName() - Method in class think\db\Query
- 得到分表的的数据表名
- getPathCode() - Method in class think\console\command\optimize\Autoload
- getPathName() - Method in class think\console\command\Make
- getPdo() - Method in class think\Connection
- 获取PDO对象
- getPid() - Method in class think\Process
- 获取PID
- getPk() - Method in class think\db\Query
- 获取当前数据表的主键
- getPk() - Method in class think\Model
- 获取模型对象的主键
- getPreviousButton() - Method in class think\paginator\driver\Bootstrap
- 上一页按钮
- getProcess() - Method in class think\process\Builder
- 创建一个Process实例
- getProcess() - Method in class think\process\exception\Timeout
- getProcess() - Method in class think\process\exception\Failed
- getProcessedHelp() - Method in class think\console\Command
- 描述信息
- getPrompt() - Method in class think\console\output\question\Choice
- 获取提示
- getQueryTimes() - Method in class think\Connection
- 获得查询次数
- getQuestion() - Method in class think\console\output\Question
- 获取问题
- getRangeMem() - Method in class think\Debug
- 记录区间的内存使用情况
- getRangeTime() - Method in class think\Debug
- 统计某个区间的时间(微秒)使用情况
- getRealSql() - Method in class think\Connection
- 根据参数绑定组装最终的SQL语句 便于调试
- getRelation() - Method in class think\model\Relation
- getRelationInfo() - Method in class think\model\Relation
- 获取当前关联信息
- getResponse() - Method in class think\exception\HttpResponseException
- getResponseType() - Method in class traits\controller\Jump
- 获取当前的response 输出类型
- getResult() - Method in class think\Connection
- 获得数据集
- getRuleMsg() - Method in class think\Validate
- 获取验证规则的错误提示信息
- getRuleUrl() - Method in class think\Url
- getScene() - Method in class think\Validate
- 获取数据验证的场景
- getSeverity() - Method in class think\exception\ErrorException
- 获取错误级别
- getShortcut() - Method in class think\console\input\Option
- 获取短名称
- getSourceCode() - Method in class think\exception\Handle
- 获取出错文件内容
获取错误的前9行和后9行
- getStatus() - Method in class think\Process
- 获取当前的状态
- getStatusCode() - Method in class think\exception\HttpException
- getStopSignal() - Method in class think\Process
- 返回导致子进程停止其执行的数。
- getStub() - Method in class think\console\command\Make
- getStub() - Method in class think\console\command\make\Controller
- getStub() - Method in class think\console\command\make\Model
- getStyle() - Method in class think\console\output\Formatter
- 获取样式
- getStyleStack() - Method in class think\console\output\Formatter
- getSynopsis() - Method in class think\console\input\Definition
- 获取该指令的介绍
- getSynopsis() - Method in class think\console\Command
- 获取简介
- getTable() - Method in class think\db\Query
- 得到当前或者指定名称的数据表
- getTable() - Method in class think\db\exception\DataNotFoundException
- 获取数据表名
- getTableFields() - Method in class think\db\Query
- getTableInfo() - Method in class think\db\Query
- 获取数据表信息
- getTables() - Method in class think\db\connector\Sqlite
- 取得数据库的表信息
- getTables() - Method in class think\db\connector\Sqlsrv
- 取得数据表的字段信息
- getTables() - Method in class think\Connection
- 取得数据库的表信息
- getTables() - Method in class think\db\connector\Mysql
- 取得数据库的表信息
- getTables() - Method in class think\db\connector\Pgsql
- 取得数据库的表信息
- getTagItem() - Method in class think\cache\Driver
- 获取标签包含的缓存标识
- getTags() - Method in class Think\TagLib
- 获取标签列表
- getTargetUrl() - Method in class think\response\Redirect
- 获取跳转地址
- getTemplate() - Method in class think\exception\TemplateNotFoundException
- 获取模板文件
- getTerminalDimensions() - Method in class think\console\output\driver\Console
- 获取当前终端的尺寸
- getTerminalHeight() - Method in class think\console\output\driver\Console
- 获取终端高度
- getTerminalWidth() - Method in class think\console\output\driver\Console
- 获取终端宽度
- getTermSignal() - Method in class think\Process
- 返回导致子进程终止其执行的数。
- getThroughputRate() - Method in class think\Debug
- 获取当前访问的吞吐率情况
- getTimeout() - Method in class think\Process
- 获取超时时间
- getUrlLinks() - Method in class think\paginator\driver\Bootstrap
- 批量生成页码按钮.
- getUrlRange() - Method in class think\Paginator
- 创建一组分页链接
- getUsages() - Method in class think\console\Command
- 获取用法介绍
- getUseMem() - Method in class think\Debug
- 统计从开始到统计时的内存使用情况
- getUseTime() - Method in class think\Debug
- 统计从开始到统计时的时间(微秒)使用情况
- getValidator() - Method in class think\console\output\Question
- 获取验证器
- getVars() - Method in class think\response\View
- 获取视图变量
- getVerbosity() - Method in class think\console\Output
- getVersion() - Method in class think\Console
- 获取版本
- getWorkingDirectory() - Method in class think\Process
- 获取工作目录
- group() - Method in class think\Route
- 注册路由分组
- group() - Method in class think\db\Query
- 指定group查询
- gt() - Method in class think\Validate
- 验证是否大于某个值
H
- halt() - Function in namespace think function and constant
- 调试变量并且中断输出
- Handle() - Class in namespace think\exception
- handler() - Method in class think\cache\Driver
- 返回句柄对象,可执行其它高级方法
- has() - Method in class think\Cache
- 判断缓存是否存在
- has() - Method in class think\Session
- 判断session数据
- has() - Method in class think\Config
- 检测配置是否存在
- has() - Method in class think\Request
- 是否存在某个请求参数
- has() - Method in class think\cache\driver\Lite
- 判断缓存是否存在
- has() - Method in class think\Lang
- 获取语言定义(不区分大小写)
- has() - Method in class think\Cookie
- 判断Cookie数据
- has() - Method in class think\cache\Driver
- 判断缓存是否存在
- has() - Method in class think\Console
- 某个指令是否存在
- has() - Method in class think\cache\driver\Wincache
- 判断缓存
- has() - Method in class think\cache\driver\Xcache
- 判断缓存
- has() - Method in class think\Model
- 根据关联条件查询当前模型
- hasArgument() - Method in class think\console\input\Definition
- 根据名称或位置检查是否具有某个参数
- hasArgument() - Method in class think\console\Input
- 检查是否存在某个参数
- hasBeenSignaled() - Method in class think\Process
- 是否未捕获的信号已被终止子进程
- hasBeenStopped() - Method in class think\Process
- 检查子进程信号是否已停止
- hasColorSupport() - Method in class think\console\output\driver\Console
- 是否支持着色
- hasMany() - Method in class think\model\Relation
- HAS MANY 关联定义
- hasMany() - Method in class think\Model
- HAS MANY 关联定义
- hasManyThrough() - Method in class think\Model
- HAS MANY 远程关联定义
- hasManyThrough() - Method in class think\model\Relation
- HAS MANY 远程关联定义
- hasOne() - Method in class think\model\Relation
- HAS ONE 关联定义
- hasOne() - Method in class think\Model
- HAS ONE 关联定义
- hasOption() - Method in class think\console\Input
- 是否有某个选项
- hasOption() - Method in class think\console\input\Definition
- 根据名称检查是否有这个选项
- hasPages() - Method in class think\Paginator
- 数据是否足够分页
- hasParameterOption() - Method in class think\console\Input
- 检查原始参数是否包含某个值
- hasShortcut() - Method in class think\console\input\Definition
- 根据名称检查某个选项是否有短名称
- hasStderrSupport() - Method in class think\console\output\driver\Console
- 当前环境是否支持写入控制台输出到stderr.
- hasStdoutSupport() - Method in class think\console\output\driver\Console
- 当前环境是否支持写入控制台输出到stdout.
- hasStyle() - Method in class think\console\output\Formatter
- 是否有这个样式
- hasSystemCallBeenInterrupted() - Method in class think\process\pipes\Pipes
- 检查系统调用已被中断
- hasWhere() - Method in class think\Model
- 根据关联条件查询当前模型
- having() - Method in class think\db\Query
- 指定having查询
- header() - Method in class think\Request
- 设置或者获取当前的Header
- header() - Method in class think\Response
- 设置响应头
- Help() - Class in namespace think\console\command
- hidden() - Method in class think\Model
- 设置需要隐藏的输出属性
- hook() - Method in class think\Request
- Hook 方法注入
- Hook() - Class in namespace think
- host() - Method in class think\Request
- 当前请求的host
- Html() - Class in namespace think\debug
- 页面Trace调试
- HttpException() - Class in namespace think\exception
- HttpResponseException() - Class in namespace think\exception
I
- ignoreValidationErrors() - Method in class think\console\Command
- 忽略验证错误
- image() - Method in class think\Validate
- 验证图片的宽高及类型
- import() - Method in class think\Route
- 导入配置文件的路由规则
- import() - Function in namespace think function and constant
- 导入所需的类库 同java的Import 本函数有缓存功能
- import() - Method in class think\Hook
- 批量导入插件
- import() - Method in class think\Loader
- 导入所需的类库 同java的Import 本函数有缓存功能
- in() - Method in class think\Validate
- 验证是否在范围内
- inc() - Method in class think\cache\driver\File
- 自增缓存(针对数值缓存)
- inc() - Method in class think\cache\driver\Wincache
- 自增缓存(针对数值缓存)
- inc() - Method in class think\cache\driver\Lite
- 自增缓存(针对数值缓存)
- inc() - Method in class think\cache\Driver
- 自增缓存(针对数值缓存)
- inc() - Method in class think\Cache
- 自增缓存(针对数值缓存)
- inc() - Method in class think\cache\driver\Xcache
- 自增缓存(针对数值缓存)
- inheritEnvironmentVariables() - Method in class think\process\Builder
- 是否初始化环境变量
- Ini() - Class in namespace think\config\driver
- init() - Method in class think\Cookie
- Cookie初始化
- init() - Method in class think\Session
- session初始化
- init() - Method in class think\Model
- 初始化处理
- init() - Method in class think\Log
- 日志初始化
- init() - Method in class think\Cache
- 自动初始化缓存
- initCommon() - Method in class think\App
- 初始化应用
- initConnect() - Method in class think\Connection
- 初始化数据库连接
- initialize() - Method in class think\console\Command
- 初始化
- inject() - Method in class think\Debug
- Input() - Class in namespace think\console
- input() - Function in namespace think function and constant
- 获取输入数据 支持默认值和过滤
- input() - Method in class think\Request
- 获取变量 支持过滤和默认值
- insert() - Method in class think\db\Builder
- 生成insert SQL
- insert() - Method in class think\db\Query
- 插入记录
- insertAll() - Method in class think\db\Query
- 批量插入记录
- insertAll() - Method in class think\db\Builder
- 生成insertall SQL
- insertGetId() - Method in class think\db\Query
- 插入记录并获取自增ID
- instance() - Method in class think\Request
- 初始化
- Instance() - Trait in namespace traits\think
- interact() - Method in class think\console\Command
- 用户验证
- intersect() - Method in class think\Collection
- 比较数组,返回交集
- invokeClass() - Method in class think\App
- 调用反射执行类的实例化 支持依赖注入
- invokeFunction() - Method in class think\App
- 执行函数或者闭包方法 支持参数调用
- invokeMethod() - Method in class think\App
- 调用反射执行类的方法 支持参数绑定
- ip() - Method in class think\Validate
- 验证是否有效IP
- ip() - Method in class think\Request
- 获取客户端IP地址
- is() - Method in class think\Validate
- 验证字段值是否为有效格式
- IS_CLI() - Global in namespace think function and constant
- IS_WIN() - Global in namespace think function and constant
- isAjax() - Method in class think\Request
- 当前是否Ajax请求
- isArray() - Method in class think\console\input\Option
- 选项值是否接受数组
- isArray() - Method in class think\console\input\Argument
- 该参数是否接受数组
- isAssoc() - Method in class think\console\output\Question
- isBind() - Method in class think\db\Query
- 检测参数是否已经绑定
- isCache() - Method in class think\Template
- 检查编译缓存是否存在
- isCgi() - Method in class think\Request
- 是否为cgi
- isCli() - Method in class think\Request
- 是否为cli
- isDebug() - Method in class think\console\Output
- isDecorated() - Method in class think\console\output\Formatter
- 获取外观标识
- isDelete() - Method in class think\Request
- 是否为DELTE请求
- isEnabled() - Method in class think\console\Command
- 是否有效
- isFatal() - Method in class think\Error
- 确定错误类型是否致命
- isGeneralTimeout() - Method in class think\process\exception\Timeout
- isGet() - Method in class think\Request
- 是否为GET请求
- isHead() - Method in class think\Request
- 是否为HEAD请求
- isHidden() - Method in class think\console\output\Question
- 是否隐藏答案
- isHiddenFallback() - Method in class think\console\output\Question
- 不能被隐藏是否撤销
- isIdleTimeout() - Method in class think\process\exception\Timeout
- isIgnoreReport() - Method in class think\exception\Handle
- isInteractive() - Method in class think\console\Input
- 检查输入是否是交互的
- isMobile() - Method in class think\Request
- 检测是否使用手机访问
- isMultiselect() - Method in class think\console\output\question\Choice
- isOptions() - Method in class think\Request
- 是否为OPTIONS请求
- isOutputDisabled() - Method in class think\Process
- 输出是否禁用
- isPatch() - Method in class think\Request
- 是否为PATCH请求
- isPjax() - Method in class think\Request
- 当前是否Pjax请求
- isPk() - Method in class think\Model
- 判断一个字段名是否为主键字段
- isPost() - Method in class think\Request
- 是否为POST请求
- isPty() - Method in class think\Process
- 是否是pty模式
- isPtySupported() - Method in class think\Process
- 是否支持pty
- isPut() - Method in class think\Request
- 是否为PUT请求
- isQuiet() - Method in class think\console\Output
- isRequired() - Method in class think\console\input\Argument
- 是否必须
- isRunning() - Method in class think\Process
- 检查是否正在运行
- isSigchildEnabled() - Method in class think\Process
- 是否开启 '--enable-sigchild'
- isSsl() - Method in class think\Request
- 当前是否ssl
- isStarted() - Method in class think\Process
- 检查是否已开始
- isSuccessful() - Method in class think\Process
- 检查是否成功
- isTerminated() - Method in class think\Process
- 检查是否已终止
- isTty() - Method in class think\Process
- 检查是否是tty模式
- isUpdate() - Method in class think\Model
- 是否为更新数据
- isValid() - Method in class think\File
- 检测是否合法的上传文件
- isValueOptional() - Method in class think\console\input\Option
- 是否可选
- isValueRequired() - Method in class think\console\input\Option
- 是否必须
- isVerbose() - Method in class think\console\Output
- isVeryVerbose() - Method in class think\console\Output
J
- join() - Method in class think\db\Query
- 查询SQL组装 join
- Json() - Class in namespace think\config\driver
- json() - Function in namespace think function and constant
- 获取\think\response\Json对象实例
- Json() - Class in namespace think\response
- jsonp() - Function in namespace think function and constant
- 获取\think\response\Jsonp对象实例
- Jsonp() - Class in namespace think\response
- jsonSerialize() - Method in class think\Collection
- jsonSerialize() - Method in class think\Model
- Jump() - Trait in namespace traits\controller
- 用法:
load_trait('controller/Jump');
class index
{
use \traits\controller\Jump;
public function index(){
$this->error();
$this->redirect();
}
}
K
- key() - Global in namespace think function and constant
- key() - Method in class think\Log
- 当前日志记录的授权key
- keys() - Method in class think\Collection
- 返回数组中所有的键名
L
- Lang() - Class in namespace think
- lang() - Function in namespace think function and constant
- 获取语言变量值
- langset() - Method in class think\Request
- 设置或者获取当前的语言
- lastModified() - Method in class think\Response
- LastModified
- lastPage() - Method in class think\Paginator
- layout() - Method in class think\Template
- 设置布局
- lazyWrite() - Method in class think\db\Query
- 延时更新检查 返回false表示需要延时
否则返回实际写入的数值
- length() - Method in class think\Validate
- 验证数据长度
- LIB_PATH() - Global in namespace think function and constant
- limit() - Method in class think\db\Query
- 指定查询数量
- listen() - Method in class think\Connection
- 监听SQL执行
- listen() - Method in class think\Hook
- 监听标签的行为
- listRows() - Method in class think\Paginator
- Lists() - Class in namespace think\console\command
- Lite() - Class in namespace think\cache\driver
- 文件类型缓存类
- load() - Method in class think\Lang
- 加载语言定义(不区分大小写)
- load_trait() - Function in namespace think function and constant
- 快速导入Traits PHP5.5以上无需调用
- Loader() - Class in namespace think
- lock() - Method in class think\db\Query
- 指定查询lock
- Log() - Class in namespace think
- Class Log
- LOG_PATH() - Global in namespace think function and constant
- lt() - Method in class think\Validate
- 验证是否小于某个值
M
- make() - Method in class think\Validate
- 实例化验证
- Make() - Class in namespace think\console\command
- make() - Method in class think\paginator\Collection
- make() - Method in class think\Paginator
- master() - Method in class think\db\Query
- 设置从主服务器读取数据
- match() - Method in class think\model\Relation
- 一对一 关联模型预查询拼装
- max() - Method in class think\Validate
- 验证数据最大长度
- max() - Method in class think\db\Query
- MAX查询
- Memcache() - Class in namespace think\session\driver
- Memcache() - Class in namespace think\cache\driver
- 缓存基础类
- Memcached() - Class in namespace think\session\driver
- Memcached() - Class in namespace think\cache\driver
- 缓存基础类
- merge() - Method in class think\Collection
- 合并数组
- Merge() - Class in namespace think\model
- Class Model
- mergeConsoleDefinition() - Method in class think\console\Command
- 合并参数定义
- message() - Method in class think\Validate
- 设置提示信息
- method() - Method in class think\Validate
- 验证请求类型
- method() - Method in class think\Request
- 当前的请求类型
- mimeType() - Method in class think\Request
- 设置资源类型
- min() - Method in class think\db\Query
- MIN查询
- min() - Method in class think\Validate
- 验证数据最小长度
- miss() - Method in class think\Route
- 注册未匹配路由规则后的处理
- Model() - Class in namespace think\console\command\make
- Model() - Class in namespace think
- Class Model
- model() - Method in class think\Connection
- 创建指定模型的查询对象
- model() - Method in class think\Loader
- 实例化(分层)模型
- model() - Function in namespace think function and constant
- 实例化Model
- ModelNotFoundException() - Class in namespace think\db\exception
- module() - Method in class think\Request
- 设置或者获取当前的模块名
- module() - Method in class think\Build
- 创建模块
- module() - Method in class think\App
- 执行模块
- move() - Method in class think\File
- 移动文件
- multiConnect() - Method in class think\Connection
- 连接分布式服务器
- mustRun() - Method in class think\Process
- 运行指令
- Mysql() - Class in namespace think\db\connector
- mysql数据库驱动
- Mysql() - Class in namespace think\db\builder
- mysql数据库驱动
N
- name() - Global in namespace think function and constant
- name() - Method in class think\db\Query
- 指定默认的数据表名(不含前缀)
- newLine() - Method in class think\console\Output
- 输出空行
- normalizePath() - Method in class think\console\command\optimize\Autoload
- notBetween() - Method in class think\Validate
- 使用notbetween验证数据
- Nothing() - Class in namespace think\console\output\driver
- notIn() - Method in class think\Validate
- 验证是否不在某个范围
O
- offsetExists() - Method in class think\Collection
- offsetExists() - Method in class think\Model
- offsetGet() - Method in class think\Collection
- offsetGet() - Method in class think\Model
- offsetSet() - Method in class think\Collection
- offsetSet() - Method in class think\Model
- offsetUnset() - Method in class think\Collection
- offsetUnset() - Method in class think\Model
- only() - Method in class think\Request
- 获取指定的参数
- onlyTrashed() - Method in class traits\model\SoftDelete
- 只查询软删除数据
- open() - Method in class think\session\driver\Memcached
- 打开Session
- open() - Method in class think\session\driver\Redis
- 打开Session
- open() - Method in class think\session\driver\Memcache
- 打开Session
- Option() - Class in namespace think\console\input
- options() - Method in class think\db\Query
- 查询参数赋值
- options() - Method in class think\Response
- 输出的参数
- order() - Method in class think\db\Query
- 指定排序 order('id','desc') 或者 order(['id'=>'desc','create_time'=>'desc'])
- output() - Method in class think\response\Xml
- 处理数据
- output() - Method in class think\response\View
- 处理数据
- output() - Method in class think\response\Json
- 处理数据
- output() - Method in class think\response\Redirect
- 处理数据
- output() - Method in class think\response\Jsonp
- 处理数据
- output() - Method in class think\Response
- 处理数据
- output() - Method in class think\debug\Html
- 调试输出接口
- Output() - Class in namespace think\console
- Class Output
- output() - Method in class think\debug\Console
- 调试输出接口
P
- page() - Method in class think\db\Query
- 指定分页
- paginate() - Method in class think\db\Query
- 分页查询
- Paginator() - Class in namespace think
- param() - Method in class think\Request
- 设置获取获取当前请求的参数
- params() - Method in class think\response\Redirect
- parse() - Method in class think\console\Input
- 解析参数
- parse() - Method in class think\Template
- 模板解析入口
支持普通标签和TagLib解析 支持自定义标签库
- parse() - Method in class think\config\driver\Ini
- parseAttr() - Method in class think\Template
- 分析标签属性
- parseAttr() - Method in class Think\TagLib
- 分析标签属性 正则方式
- parseClass() - Method in class think\Loader
- 解析应用类的类名
- parseComment() - Method in class think\db\Builder
- comment分析
- parseCondition() - Method in class Think\TagLib
- 解析条件表达式
- parseData() - Method in class think\model\Merge
- 处理写入的模型数据
- parseDistinct() - Method in class think\db\Builder
- distinct分析
- parseDomain() - Method in class think\Url
- parseDsn() - Method in class think\db\connector\Pgsql
- 解析pdo连接的dsn信息
- parseDsn() - Method in class think\db\connector\Sqlite
- 解析pdo连接的dsn信息
- parseDsn() - Method in class think\db\connector\Mysql
- 解析pdo连接的dsn信息
- parseDsn() - Method in class think\db\connector\Sqlsrv
- 解析pdo连接的dsn信息
- parseDsn() - Method in class think\Connection
- 解析pdo连接的dsn信息
- parseExpress() - Method in class think\db\Query
- 分析表达式(可用于查询或者写入操作)
- parseForce() - Method in class think\db\Builder
- index分析,可在操作链中指定需要强制使用的索引
- parseGroup() - Method in class think\db\Builder
- group分析
- parseHaving() - Method in class think\db\Builder
- having分析
- parseLock() - Method in class think\db\Builder
- 设置锁机制
- parseModel() - Method in class think\Model
- 解析模型的完整命名空间
- parseName() - Method in class think\Loader
- 字符串命名风格转换
type 0 将Java风格转换为C的风格 1 将C风格转换为Java的风格
- parseOrder() - Method in class think\db\Builder
- order分析
- parsePkWhere() - Method in class think\db\Query
- 把主键值转换为查询条件 支持复合主键
- parseQuery() - Method in class think\Model
- 分析查询表达式
- parseSavepoint() - Method in class think\Connection
- 生成定义保存点的SQL
- parseSavepointRollBack() - Method in class think\Connection
- 生成回滚到保存点的SQL
- parseSqlTable() - Method in class think\db\Query
- 将SQL语句中的__TABLE_NAME__字符串替换成带前缀的表名(小写)
- parseSuffix() - Method in class think\Url
- parseTag() - Method in class Think\TagLib
- 按签标库替换页面中的标签
- parseTagLib() - Method in class think\Template
- TagLib库解析
- parseThinkVar() - Method in class think\Template
- 特殊模板变量解析
格式 以 $Think.
- parseUnion() - Method in class think\db\Builder
- union分析
- parseUrl() - Method in class think\Route
- 解析模块的URL地址 [模块/控制器/操作?]参数1=值1&参数2=值2...
- parseUrl() - Method in class think\Url
- parseVar() - Method in class think\Template
- 模板变量解析,支持使用函数
格式: {$varname|function1|function2=arg1,arg2}
- parseVarFunction() - Method in class think\Template
- 对模板中使用了函数的变量进行解析
格式 {$varname|function1|function2=arg1,arg2}
- parseWhereExp() - Method in class think\db\Query
- 分析查询表达式
- partition() - Method in class think\db\Query
- 设置分表规则
- patch() - Method in class think\Request
- 设置获取获取PATCH参数
- patch() - Method in class think\Route
- 注册PATCH路由
- path() - Method in class think\Request
- 获取当前请求URL的pathinfo信息(不含URL后缀)
- pathinfo() - Method in class think\Request
- 获取当前请求URL的pathinfo信息(含URL后缀)
- pause() - Method in class think\Session
- 暂停session
- PDOException() - Class in namespace think\exception
- PDO异常处理类
重新封装了系统的\PDOException类
- Pgsql() - Class in namespace think\db\connector
- Pgsql数据库驱动
- Pgsql() - Class in namespace think\db\builder
- Pgsql数据库驱动
- Php() - Class in namespace think\view\driver
- Pipes() - Class in namespace think\process\pipes
- Pivot() - Class in namespace think\model
- Class Model
- pk() - Method in class think\db\Query
- 指定数据表主键
- pop() - Method in class think\Collection
- 删除数组的最后一个元素(出栈)
- pop() - Method in class think\console\output\formatter\Stack
- 从堆栈中弹出一个样式
- port() - Method in class think\Request
- 当前请求URL地址中的port参数
- post() - Method in class think\Route
- 注册POST路由
- post() - Method in class think\Request
- 设置获取获取POST参数
- prefix() - Method in class think\Session
- 设置或者获取session作用域(前缀)
- prefix() - Method in class think\Cookie
- 设置或者获取cookie作用域(前缀)
- procedure() - Method in class think\Connection
- 获得存储过程数据集
- Process() - Class in namespace think
- protocol() - Method in class think\Request
- 当前请求 SERVER_PROTOCOL
- pull() - Method in class think\cache\Driver
- 读取缓存并删除
- pull() - Method in class think\Session
- session获取并删除
- push() - Method in class think\console\output\formatter\Stack
- 推一个样式进入堆栈
- put() - Method in class think\Request
- 设置获取获取PUT参数
- put() - Method in class think\Route
- 注册PUT路由
Q
- query() - Method in class think\Connection
- 执行查询 返回数据集
- Query() - Class in namespace think\db
- query() - Method in class think\Request
- 当前请求URL地址中的query参数
- Question() - Class in namespace think\console\output
- quote() - Method in class think\Connection
- SQL指令安全过滤
R
- range() - Method in class think\Lang
- read() - Method in class think\session\driver\Redis
- 读取Session
- read() - Method in class think\session\driver\Memcached
- 读取Session
- read() - Method in class think\session\driver\Memcache
- 读取Session
- read() - Method in class think\template\driver\File
- 读取编译编译
- readAndWrite() - Method in class think\process\pipes\Windows
- 文件句柄和管道中读取数据。
- readAndWrite() - Method in class think\process\pipes\Unix
- 文件句柄和管道中读取数据。
- readAndWrite() - Method in class think\process\pipes\Pipes
- 文件句柄和管道中读取数据。
- readTransform() - Method in class think\Model
- 数据读取 类型转换
- record() - Method in class think\Log
- 记录调试信息
- redirect() - Function in namespace think function and constant
- 获取\think\response\Redirect对象实例
- Redirect() - Class in namespace think\response
- redirect() - Method in class traits\controller\Jump
- URL重定向
- Redis() - Class in namespace think\session\driver
- Redis() - Class in namespace think\cache\driver
- Redis缓存驱动,适合单机部署、有前端代理实现高可用的场景,性能最好
有需要在业务层实现读写分离、或者使用RedisCluster的需求,请使用Redisd驱动
要求安装phpredis扩展:https://github.com/nicolasff/phpredis
- reduce() - Method in class think\Collection
- 通过使用用户自定义函数,以字符串返回数组
- regex() - Method in class think\Validate
- 使用正则验证数据
- register() - Method in class think\Console
- 注册一个指令
- register() - Method in class think\Loader
- register() - Method in class think\Error
- 注册异常处理
- registerRules() - Method in class think\Route
- Relation() - Class in namespace think\model
- relation() - Method in class think\db\Query
- 设置关联查询
- relationQuery() - Method in class think\Model
- 查询当前模型的关联数据
- remark() - Method in class think\Debug
- 记录时间(微秒)和内存使用情况
- remember() - Method in class think\response\Redirect
- 记住当前url后跳转
- remotePort() - Method in class think\Request
- 当前请求 REMOTE_PORT
- render() - Method in class think\exception\Handle
- Render an exception into an HTTP response.
- render() - Method in class think\paginator\driver\Bootstrap
- 渲染分页html
- render() - Method in class think\Paginator
- 渲染分页html
- renderException() - Method in class think\console\output\driver\Buffer
- renderException() - Method in class think\console\output\driver\Console
- renderException() - Method in class think\console\output\driver\Nothing
- renderException() - Method in class think\console\Output
- renderForConsole() - Method in class think\exception\Handle
- renderHttpException() - Method in class think\exception\Handle
- replace() - Method in class think\response\View
- 视图内容替换
- replace() - Method in class think\View
- 视图内容替换
- report() - Method in class think\exception\Handle
- Report or log an exception.
- request() - Function in namespace think function and constant
- 获取当前Request对象实例
- Request() - Class in namespace think
- requireCallback() - Method in class think\Validate
- 通过回调方法验证某个字段是否必须
- requireIf() - Method in class think\Validate
- 验证某个字段等于某个值的时候必须
- requireWith() - Method in class think\Validate
- 验证某个字段有值的情况下必须
- reset() - Method in class think\Config
- 重置配置参数
- reset() - Method in class think\console\output\formatter\Stack
- 重置堆栈
- resource() - Method in class think\Route
- 注册资源路由
- response() - Function in namespace think function and constant
- 创建普通 Response 对象实例
- response() - Method in class think\controller\Rest
- 输出返回数据
- Response() - Class in namespace think
- Rest() - Class in namespace think\controller
- rest() - Method in class think\Route
- rest方法定义和修改
- restart() - Method in class think\Process
- 重启进程
- restore() - Method in class traits\model\SoftDelete
- 恢复被软删除的记录
- restore() - Method in class think\response\Redirect
- 跳转到上次记住的url
- result() - Method in class traits\controller\Jump
- 返回封装后的API数据到客户端
- resultSetBuild() - Method in class think\model\Relation
- 封装关联数据集
- reverse() - Method in class think\Collection
- 以相反的顺序返回数组。
- rm() - Method in class think\cache\driver\Xcache
- 删除缓存
- rm() - Method in class think\cache\driver\File
- 删除缓存
- rm() - Method in class think\cache\driver\Sqlite
- 删除缓存
- rm() - Method in class think\cache\Driver
- 删除缓存
- rm() - Method in class think\cache\driver\Wincache
- 删除缓存
- rm() - Method in class think\cache\driver\Lite
- 删除缓存
- rm() - Method in class think\Cache
- 删除缓存
- rollback() - Method in class think\Connection
- 事务回滚
- rollback() - Method in class think\db\Query
- 事务回滚
- root() - Method in class think\Url
- root() - Method in class think\Request
- 获取URL访问根地址
- ROOT_PATH() - Global in namespace think function and constant
- route() - Method in class think\Request
- 设置获取获取路由参数
- Route() - Class in namespace think
- Route() - Class in namespace think\console\command\optimize
- route() - Method in class think\App
- 设置应用的路由检测机制
- routeCheck() - Method in class think\App
- URL路由检测(根据PATH_INFO)
- routeInfo() - Method in class think\Request
- 获取当前请求的路由信息
- rule() - Method in class think\Route
- 注册路由规则
- rule() - Method in class think\Validate
- 添加字段验证规则
- rule() - Method in class think\File
- 设置文件的命名规则
- rules() - Method in class think\Route
- 获取或者批量设置路由定义
- run() - Method in class think\App
- 执行应用程序
- run() - Method in class think\console\output\Ask
- run() - Method in class think\Process
- 运行指令
- run() - Method in class think\console\Command
- 执行
- RUNTIME_PATH() - Global in namespace think function and constant
S
- save() - Method in class think\log\driver\Test
- 日志写入接口
- save() - Method in class think\model\Merge
- 保存模型数据 以及关联数据
- save() - Method in class think\Model
- 保存当前数据对象
- save() - Method in class think\Log
- 保存调试信息
- save() - Method in class think\log\driver\Socket
- 调试输出接口
- save() - Method in class think\model\Relation
- 保存(新增)当前关联数据对象
- saveAll() - Method in class think\Model
- 保存多个数据到当前数据对象
- saveAll() - Method in class think\model\Relation
- 批量保存当前关联数据对象
- scene() - Method in class think\Validate
- 设置验证场景
- Schema() - Class in namespace think\console\command\optimize
- scheme() - Method in class think\Request
- 当前URL地址中的scheme参数
- scope() - Method in class think\Model
- 命名范围
- select() - Method in class think\db\Query
- 查找记录
- select() - Method in class think\db\Builder
- 生成查询SQL
- selectInsert() - Method in class think\db\builder\Sqlsrv
- 生成slectinsert SQL
- selectInsert() - Method in class think\db\Query
- 通过Select方式插入记录
- selectInsert() - Method in class think\db\Builder
- 生成slectinsert SQL
- selectOrFail() - Method in class think\db\Query
- 查找多条记录 如果不存在则抛出异常
- send() - Method in class think\log\driver\Socket
- send() - Method in class think\Response
- 发送数据到客户端
- sendToClient() - Method in class think\log\driver\Socket
- 发送给指定客户端
- sequence() - Method in class think\db\Query
- 设置自增序列名
- server() - Method in class think\Request
- 获取server参数
- session() - Function in namespace think function and constant
- Session管理
- session() - Method in class think\Request
- 获取session数据
- Session() - Class in namespace think
- set() - Method in class think\cache\driver\Wincache
- 写入缓存
- set() - Method in class think\cache\driver\File
- 写入缓存
- set() - Method in class think\Cache
- 写入缓存
- set() - Method in class think\Session
- session设置
- set() - Method in class think\Lang
- 设置语言定义(不区分大小写)
- set() - Method in class think\Cookie
- Cookie 设置、获取、删除
- set() - Method in class think\cache\driver\Xcache
- 写入缓存
- set() - Method in class think\cache\driver\Lite
- 写入缓存
- set() - Method in class think\cache\Driver
- 写入缓存
- set() - Method in class think\Config
- 设置配置参数 name为数组则为批量设置
- setAlias() - Method in class think\model\Relation
- 设置当前关联定义的数据表别名
- setAliases() - Method in class think\console\Command
- 设置别名
- setAllowLangList() - Method in class think\Lang
- 设置允许的语言列表
- setArgument() - Method in class think\console\Input
- 设置参数的值
- setArguments() - Method in class think\process\Builder
- 设置参数
- setArguments() - Method in class think\console\input\Definition
- 设置参数
- setAttr() - Method in class think\Model
- 修改器 设置数据对象值
- setAutocompleterValues() - Method in class think\console\output\Question
- 设置自动完成的值
- setBackground() - Method in class think\console\output\formatter\Style
- 设置背景色
- setCode() - Method in class think\console\Command
- 设置执行代码
- setCommand() - Method in class think\console\command\Help
- Sets the command.
- setCommandLine() - Method in class think\Process
- 设置指令
- setConfig() - Method in class think\Connection
- 设置数据库的配置参数
- setConsole() - Method in class think\console\Command
- 设置控制台
- setCurrentPage() - Method in class think\Paginator
- setData() - Method in class think\Exception
- 设置异常额外的Debug数据
数据将会显示为下面的格式
Exception Data
--------------------------------------------------
Label 1
key1 value1
key2 value2
Label 2
key1 value1
key2 value2
- setDec() - Method in class think\db\Query
- 字段值(延迟)减少
- setDecorated() - Method in class think\console\output\Formatter
- 设置外观标识
- setDefault() - Method in class think\console\input\Option
- 设置默认值
- setDefault() - Method in class think\console\input\Argument
- 设置默认值
- setDefaultCommand() - Method in class think\Console
- 设置默认的指令
- setDefinition() - Method in class think\console\Command
- 设置参数定义
- setDefinition() - Method in class think\console\input\Definition
- 设置指令的定义
- setDescription() - Method in class think\console\Command
- 设置描述
- setEmptyStyle() - Method in class think\console\output\formatter\Stack
- setEnhanceSigchildCompatibility() - Method in class think\Process
- 激活 sigchild 兼容性模式。
- setEnhanceWindowsCompatibility() - Method in class think\Process
- 设置是否兼容windows
- setEnv() - Method in class think\Process
- 设置环境变量
- setEnv() - Method in class think\process\Builder
- 设置环境变量
- setErrorMessage() - Method in class think\console\output\question\Choice
- 设置错误提示信息
- setField() - Method in class think\db\Query
- 设置记录的某个字段值
支持使用数据库字段和方法
- setForeground() - Method in class think\console\output\formatter\Style
- 设置字体颜色
- setGroup() - Method in class think\Route
- 设置当前的路由分组
- setHelp() - Method in class think\console\Command
- 设置帮助信息
- setHidden() - Method in class think\console\output\Question
- 隐藏答案
- setHiddenFallback() - Method in class think\console\output\Question
- 设置不能被隐藏的时候的操作
- setIdleTimeout() - Method in class think\Process
- 设置idle超时时间
- setInc() - Method in class think\db\Query
- 字段值(延迟)增长
- setInput() - Method in class think\Process
- 设置输入
- setInput() - Method in class think\process\Builder
- 设置输入
- setInteractive() - Method in class think\console\Input
- 设置输入的交互
- setLangCookieExpire() - Method in class think\Lang
- 设置语言的cookie的过期时间
- setLangCookieVar() - Method in class think\Lang
- 设置语言的cookie保存变量
- setLangDetectVar() - Method in class think\Lang
- 设置语言自动侦测的变量
- setMaxAttempts() - Method in class think\console\output\Question
- 设置最大重试次数
- setMethodPrefix() - Method in class think\Route
- 设置不同请求类型下面的方法前缀
- setMultiselect() - Method in class think\console\output\question\Choice
- 设置可否多选
- setName() - Method in class think\Console
- 设置名称
- setName() - Method in class think\console\Command
- 设置指令名称
- setNormalizer() - Method in class think\console\output\Question
- 设置响应的回调
- setOption() - Method in class think\process\Builder
- 设置proc_open选项
- setOption() - Method in class think\console\Input
- 设置选项值
- setOption() - Method in class think\console\output\formatter\Style
- 设置字体格式
- setOptions() - Method in class think\Process
- 设置proc_open的选项
- setOptions() - Method in class think\console\input\Definition
- 设置选项
- setOptions() - Method in class think\console\output\formatter\Style
- 批量设置字体格式
- setPrefix() - Method in class think\process\Builder
- 添加一个前缀
- setPrompt() - Method in class think\console\output\question\Choice
- 设置提示
- setPty() - Method in class think\Process
- 设置pty模式
- setRule() - Method in class think\Route
- 设置路由规则
- setStyle() - Method in class think\console\output\Formatter
- 添加一个新样式
- setTable() - Method in class think\db\Query
- 指定默认数据表名(含前缀)
- setTagItem() - Method in class think\cache\Driver
- 更新标签
- setTimeout() - Method in class think\Process
- 设置超时时间
- setTimeout() - Method in class think\process\Builder
- 设置超时时间
- setTokens() - Method in class think\console\Input
- setTrace() - Method in class think\exception\ThrowableError
- setTty() - Method in class think\Process
- 设置TTY
- setTypeMsg() - Method in class think\Validate
- 获取验证规则的默认提示信息
- setValidator() - Method in class think\console\output\Question
- 设置答案的验证器
- setVerbosity() - Method in class think\console\Output
- setVersion() - Method in class think\Console
- 设置版本
- setWorkingDirectory() - Method in class think\Process
- 设置工作目录
- setWorkingDirectory() - Method in class think\process\Builder
- 设置工作目录
- shift() - Method in class think\Collection
- 删除数组中首个元素,并返回被删除元素的值
- shuffle() - Method in class think\Collection
- 将数组打乱
- signal() - Method in class think\Process
- 将一个 POSIX 信号发送到进程中
- slice() - Method in class think\Collection
- 截取数组
- Socket() - Class in namespace think\log\driver
- github: https://github.com/luofei614/SocketLog
- SoftDelete() - Trait in namespace traits\model
- sort() - Method in class think\Collection
- 对数组排序
- Sqlite() - Class in namespace think\db\builder
- Sqlite数据库驱动
- Sqlite() - Class in namespace think\cache\driver
- Sqlite缓存驱动
- Sqlite() - Class in namespace think\db\connector
- Sqlite数据库驱动
- Sqlsrv() - Class in namespace think\db\connector
- Sqlsrv数据库驱动
- Sqlsrv() - Class in namespace think\db\builder
- Sqlsrv数据库驱动
- Stack() - Class in namespace think\console\output\formatter
- start() - Method in class think\Session
- 启动session
- start() - Method in class think\Process
- 启动进程并写到 STDIN 输入后返回。
- startTrans() - Method in class think\db\Query
- 启动事务
- startTrans() - Method in class think\Connection
- 启动事务
- stop() - Method in class think\Process
- 终止进程
- store() - Method in class think\Cache
- 切换缓存类型 需要配置 cache.type 为 complex
- strict() - Method in class think\db\Query
- 设置是否严格检查字段名
- Style() - Class in namespace think\console\output\formatter
- success() - Method in class traits\controller\Jump
- 操作成功跳转的快捷方法
- sum() - Method in class think\db\Query
- SUM查询
- supportSavepoint() - Method in class think\Connection
- 是否支持事务嵌套
- supportSavepoint() - Method in class think\db\connector\Pgsql
- 是否支持事务嵌套
- supportSavepoint() - Method in class think\db\connector\Mysql
- 是否支持事务嵌套
- supportSavepoint() - Method in class think\db\connector\Sqlite
- 是否支持事务嵌套
T
- table() - Method in class think\db\Query
- 指定当前操作的数据表
- tag() - Method in class think\cache\Driver
- 缓存标签
- tag() - Method in class think\Cache
- 缓存标签
- tagAssign() - Method in class Think\Cx
- assign标签解析
在模板中给某个变量赋值 支持变量赋值
格式: {assign name="" value="" /}
- tagCase() - Method in class Think\Cx
- case标签解析 需要配合switch才有效
- tagCompare() - Method in class Think\Cx
- compare标签解析
用于值的比较 支持 eq neq gt lt egt elt heq nheq 默认是eq
格式: {compare name="" type="eq" value="" }content{/compare}
- tagDefault() - Method in class Think\Cx
- default标签解析 需要配合switch才有效
使用: {default /}ddfdf
- tagDefine() - Method in class Think\Cx
- define标签解析
在模板中定义常量 支持变量赋值
格式: {define name="" value="" /}
- tagDefined() - Method in class Think\Cx
- 判断是否已经定义了该常量
{defined name='TXT'}已定义{/defined}
- tagElse() - Method in class Think\Cx
- else标签解析
格式:见if标签
- tagElseif() - Method in class Think\Cx
- elseif标签解析
格式:见if标签
- tagEmpty() - Method in class Think\Cx
- empty标签解析
如果某个变量为empty 则输出内容
格式: {empty name="" }content{/empty}
- tagFor() - Method in class Think\Cx
- for标签解析
格式:
{for start="" end="" comparison="" step="" name=""}
content
{/for}
- tagForeach() - Method in class Think\Cx
- foreach标签解析 循环输出数据集
格式:
{foreach name="userList" id="user" key="key" index="i" mod="2" offset="3" length="5" empty=""}
{user.username}
{/foreach}
- tagFunction() - Method in class Think\Cx
- function标签解析 匿名函数,可实现递归
使用:
{function name="func" vars="$data" call="$list" use="&$a,&$b"}
{if is_array($data)}
{foreach $data as $val}
{~func($val) /}
{/foreach}
{else /}
{$data}
{/if}
{/function}
- tagIf() - Method in class Think\Cx
- if标签解析
格式:
{if condition=" $a eq 1"}
{elseif condition="$a eq 2" /}
{else /}
{/if}
表达式支持 eq neq gt egt lt elt == > >= < <= or and || &&
- TagLib() - Class in namespace Think
- ThinkPHP标签库TagLib解析基类
- tagLoad() - Method in class Think\Cx
- load 标签解析 {load file="/static/js/base.js" /}
格式:{load file="/static/css/base.css" /}
- tagNotdefined() - Method in class Think\Cx
- 判断是否没有定义了该常量
{notdefined name='TXT'}已定义{/notdefined}
- tagNotempty() - Method in class Think\Cx
- notempty标签解析
如果某个变量不为empty 则输出内容
格式: {notempty name="" }content{/notempty}
- tagNotpresent() - Method in class Think\Cx
- notpresent标签解析
如果某个变量没有设置,则输出内容
格式: {notpresent name="" }content{/notpresent}
- tagPhp() - Method in class Think\Cx
- php标签解析
格式:
{php}echo $name{/php}
- tagPresent() - Method in class Think\Cx
- present标签解析
如果某个变量已经设置 则输出内容
格式: {present name="" }content{/present}
- tagRange() - Method in class Think\Cx
- range标签解析
如果某个变量存在于某个范围 则输出内容 type= in 表示在范围内 否则表示在范围外
格式: {range name="var|function" value="val" type='in|notin' }content{/range}
example: {range name="a" value="1,2,3" type='in' }content{/range}
- tagSwitch() - Method in class Think\Cx
- switch标签解析
格式:
{switch name="a.name"}
{case value="1" break="false"}1{/case}
{case value="2" }2{/case}
{default /}other
{/switch}
- tagUrl() - Method in class Think\Cx
- U函数的tag标签
格式:{url link="模块/控制器/方法" vars="参数" suffix="true或者false 是否带有后缀" domain="true或者false 是否携带域名" /}
- tagVolist() - Method in class Think\Cx
- volist标签解析 循环输出数据集
格式:
{volist name="userList" id="user" empty=""}
{user.username}
{user.email}
{/volist}
- TEMP_PATH() - Global in namespace think function and constant
- Template() - Class in namespace think
- ThinkPHP分离出来的模板引擎
支持XML标签和普通标签的模板解析
编译型模板引擎 支持动态缓存
- TemplateNotFoundException() - Class in namespace think\exception
- Test() - Class in namespace think\log\driver
- 模拟测试输出
- Think() - Class in namespace think\view\driver
- THINK_PATH() - Global in namespace think function and constant
- THINK_START_MEM() - Global in namespace think function and constant
- THINK_START_TIME() - Global in namespace think function and constant
- THINK_VERSION() - Global in namespace think function and constant
- ThrowableError() - Class in namespace think\exception
- throwNotFound() - Method in class think\db\Query
- 查询失败 抛出异常
- time() - Method in class think\Request
- 获取当前请求的时间
- Timeout() - Class in namespace think\process\exception
- toArray() - Method in class think\Model
- 转换当前模型对象为数组
- toArray() - Method in class think\Collection
- toArray() - Method in class think\paginator\Collection
- toJson() - Method in class think\Model
- 转换当前模型对象为JSON字符串
- toJson() - Method in class think\Collection
- 转换当前数据集为JSON字符串
- token() - Method in class think\Request
- 生成请求令牌
- token() - Method in class think\Validate
- 验证表单令牌
- token() - Function in namespace think function and constant
- 生成表单令牌
- total() - Method in class think\Paginator
- trace() - Function in namespace think function and constant
- 记录日志信息
- TRAIT_PATH() - Global in namespace think function and constant
- transaction() - Method in class think\db\Query
- 执行数据库事务
- transaction() - Method in class think\Connection
- 执行数据库事务
- trashed() - Method in class traits\model\SoftDelete
- 判断当前实例是否被软删除
- trigger() - Method in class think\Connection
- 触发SQL事件
- trigger() - Method in class think\Model
- 触发事件
- type() - Method in class think\Request
- 当前请求的资源类型
U
- unblock() - Method in class think\process\pipes\Pipes
- union() - Method in class think\db\Query
- 查询SQL组装 union
- unique() - Method in class think\Validate
- 验证是否唯一
- Unix() - Class in namespace think\process\pipes
- unsetOption() - Method in class think\console\output\formatter\Style
- 重置字体格式
- unshift() - Method in class think\Collection
- 在数组开头插入一个元素
- update() - Method in class think\db\Builder
- 生成update SQL
- update() - Method in class think\Model
- 更新数据
- update() - Method in class think\db\Query
- 更新记录
- updateStatus() - Method in class think\Process
- 更新状态
- Url() - Class in namespace think
- url() - Method in class think\Paginator
- 获取页码对应的链接
- url() - Function in namespace think function and constant
- Url生成
- url() - Method in class think\Request
- 获取当前完整URL 包括QUERY_STRING
- useGlobalScope() - Method in class think\Model
- 设置是否使用全局查询范围
- using() - Method in class think\db\Query
- USING支持 用于多表删除
- Utils() - Class in namespace think\process
V
- val() - Global in namespace think function and constant
- validate() - Method in class think\Model
- 设置字段验证
- Validate() - Class in namespace think
- validate() - Method in class think\Controller
- 验证数据
- validate() - Function in namespace think function and constant
- 实例化验证器
- validate() - Method in class think\Loader
- 实例化验证类 格式:[模块名/]验证器名
- validate() - Method in class think\console\Input
- 验证输入
- validate() - Method in class think\File
- 设置上传文件的验证规则
- validateAttempts() - Method in class think\console\output\Ask
- validateData() - Method in class think\Model
- 自动验证数据
- ValidateException() - Class in namespace think\exception
- validateFailException() - Method in class think\Model
- 设置验证失败后是否抛出异常
- validateFailException() - Method in class think\Controller
- 设置验证失败后是否抛出异常
- validateInput() - Method in class think\process\Utils
- 验证并进行规范化Process输入。
- value() - Method in class think\db\Query
- 得到某个字段的值
- vendor() - Function in namespace think function and constant
- 快速导入第三方框架类库 所有第三方框架的类库文件统一放到 系统的Vendor目录下面
- VENDOR_PATH() - Global in namespace think function and constant
- via() - Method in class think\db\Query
- 设置当前字段添加的表别名
- view() - Function in namespace think function and constant
- 渲染模板输出
- View() - Class in namespace think
- view() - Method in class think\db\Query
- 指定JOIN查询字段
- View() - Class in namespace think\response
- visible() - Method in class think\Model
- 设置需要输出的属性
W
- wait() - Method in class think\Process
- 等待要终止的进程
- where() - Method in class think\db\Query
- 指定AND查询条件
- whereOr() - Method in class think\db\Query
- 指定OR查询条件
- whereTime() - Method in class think\db\Query
- 查询日期或者时间
- whereXor() - Method in class think\db\Query
- 指定XOR查询条件
- widget() - Function in namespace think function and constant
- 渲染输出Widget
- Wincache() - Class in namespace think\cache\driver
- Wincache缓存驱动
- Windows() - Class in namespace think\process\pipes
- with() - Method in class think\response\Redirect
- 重定向传值(通过Session)
- with() - Method in class think\db\Query
- 设置关联查询JOIN预查询
- withField() - Method in class think\db\Query
- 关联预加载中 获取关联指定字段值
example:
Model::with(['relation' => function($query){
$query->withField("id,name");
}])
- withTrashed() - Method in class traits\model\SoftDelete
- 查询软删除数据
- write() - Method in class think\template\driver\File
- 写入编译缓存
- write() - Method in class think\console\output\Descriptor
- 输出内容
- write() - Method in class think\console\Output
- 输出信息
- write() - Method in class think\session\driver\Redis
- 写入Session
- write() - Method in class think\console\output\driver\Buffer
- write() - Method in class think\console\output\driver\Console
- write() - Method in class think\Log
- 实时写入日志信息 并支持行为
- write() - Method in class think\session\driver\Memcached
- 写入Session
- write() - Method in class think\session\driver\Memcache
- 写入Session
- write() - Method in class think\console\output\driver\Nothing
- writeln() - Method in class think\console\Output
- 输出信息并换行
- writePrompt() - Method in class think\console\output\Ask
- 显示问题的提示信息
- writeTransform() - Method in class think\Model
- 数据写入 类型转换
X
- Xcache() - Class in namespace think\cache\driver
- Xcache缓存驱动
- Xml() - Class in namespace think\response
- Xml() - Class in namespace think\config\driver
- xml() - Function in namespace think function and constant
- 获取\think\response\Xml对象实例
- xmlEncode() - Method in class think\response\Xml
- XML编码
Y
- Yar() - Class in namespace think\controller
- ThinkPHP Yar控制器类