A

ApcClass in namespace Cml\Cache
Apc缓存驱动
Cml::autoloadComposerAdditional() — Method in class Cml
自动加载类库 要注意的是 使用autoload的时候 不能手动抛出异常 因为在自动加载静态类时手动抛出异常会导致自定义的致命错误捕获机制和自定义异常处理机制失效 而 new Class 时自动加载不存在文件时,手动抛出的异常可以正常捕获 这边即使文件不存在时没有抛出自定义异常也没关系,因为自定义的致命错误捕获机制会捕获到错误
ApiAutoTestClass in namespace Cml\Console\Commands
从代码注释提取接口信息自动运行测试
AddTaskClass in namespace Cml\Console\Commands\DaemonProcessManage
添加一个后台任务
AbstractCommandClass in namespace Cml\Console\Commands\Migrate
数据库迁移-抽象命令
Dialog::ask() — Method in class Dialog
提问并获取用户输入
Console::addCommands() — Method in class Console
批量添加命令
Console::addCommand() — Method in class Console
注册一个命令
Container::alias() — Method in class Container
绑定一个别名
MongoDB::avg() — Method in class MongoDB
获取 $avg 的结果
MongoDB::affectedRows() — Method in class MongoDB
返回INSERT,UPDATE 或 DELETE 查询所影响的记录行数
Pdo::avg() — Method in class Pdo
获取 AVG(字段名) 的结果
Pdo::affectedRows() — Method in class Pdo
返回INSERT,UPDATE 或 DELETE 查询所影响的记录行数。
Debug::addTipInfo() — Method in class Debug
添加调试信息
Debug::addSqlInfo() — Method in class Debug
添加一条sql查询的调试信息
ErrorOrException::appException() — Method in class ErrorOrException
自定义异常处理
Console::addCommands() — Method in class Console
批量添加命令
Console::addCommand() — Method in class Console
注册一个命令
Db::avg() — Method in class Db
获取 AVG(字段名或*) 的结果
Db::affectedRows() — Method in class Db
返回INSERT,UPDATE 或 DELETE 查询所影响的记录行数。
ErrorOrException::appException() — Method in class ErrorOrException
自定义异常处理
Logger::alert() — Method in class Logger
必须立刻采取行动
Route::any() — Method in class Route
增加任意访问方式路由
View::assign() — Method in class View
变量赋值
View::assignByRef() — Method in class View
引用赋值
Base::alert() — Method in class Base
必须立刻采取行动
Route::any() — Method in class Route
增加任意访问方式路由
Secure::addslashes() — Method in class Secure
增强的addslashes
Blade::addRule() — Method in class Blade
添加一个模板替换规则
FastRoute::any() — Method in class FastRoute
增加任意访问方式路由
Route::any() — Method in class Route
增加任意访问方式路由
Whoops::appException() — Method in class Whoops
自定义异常处理
AnnotationToDocClass in namespace Cml\Tools\Apidoc
从注释生成文档实现类
AutoTestClass in namespace Cml\Tools\Apidoc
从代码注释提取接口信息自动运行测试类
ProcessManage::addTask() — Method in class ProcessManage
添加任务
AclClass in namespace Cml\Vendor
权限控制类
$AclProperty in class Acl
有权限的时候保存权限的显示名称用于记录log
$AclProperty in class Acl
当前登录的用户信息
Image::addWaterMark() — Method in class Image
图片打水印
PhpThread::add() — Method in class PhpThread
往线程队列添加任务
Validate::addRule() — Method in class Validate
添加一个自定义的验证规则
Base::assign() — Method in class Base
变量赋值
Base::assignByRef() — Method in class Base
引用赋值
Html::addRule() — Method in class Html
添加一个模板替换规则

B

BaseClass in namespace Cml\Cache
缓存驱动抽象基类
AbstractCommand::bootstrap() — Method in class AbstractCommand
Bootstrap Phinx.
BreakpointClass in namespace Cml\Console\Commands\Migrate
数据库迁移-断点
BoxClass in namespace Cml\Console\Component
命令行工具-输出内容格式化为长方形框组件
Container::bind() — Method in class Container
绑定服务
BaseClass in namespace Cml\Db
Orm 数据库抽象基类
MongoDB::buildSql() — Method in class MongoDB
构建sql
Pdo::buildSql() — Method in class Pdo
构建sql
Request::baseUrl() — Method in class Request
获取基本URL地址
Db::buildSql() — Method in class Db
构建sql
BaseClass in namespace Cml\Lock
锁驱动抽象类基类
BaseClass in namespace Cml\Logger
Logger 抽象类
BaseClass in namespace Cml\Queue
队列基类
BladeClass in namespace Cml\Service
blade模板引擎封装实现
Ip2Region::binarySearch() — Method in class Ip2Region
根据所给IP地址或域名返回所在地区信息binary
Ip2Region::btreeSearch() — Method in class Ip2Region
根据所给IP地址或域名返回所在地区信息binary
$PageProperty in class Page
分页栏每页显示的页数
BaseClass in namespace Cml\View
视图渲染引擎 抽象基类

C

File::cleanDir() — Method in class File
清空文件夹
CmlClass in namespace Cml
框架基础类,负责初始化应用的一系列工作,如配置初始化、语言包载入、错误异常机制的处理等
$CmlProperty in class Cml
应用容器
Cml::cmlStop() — Method in class Cml
程序中并输出调试信息
ConfigClass in namespace Cml
配置读写类、负责配置文件的读取
CommandClass in namespace Cml\Console
控制台命令抽象类
CreateSymbolicLinkClass in namespace Cml\Console\Commands
创建静态文件资源目录软链接
ControllerClass in namespace Cml\Console\Commands\Make
创建控制器
CreateClass in namespace Cml\Console\Commands\Migrate
数据库迁移-生成迁移
Dialog::confirm() — Method in class Dialog
确认对话框
ConsoleClass in namespace Cml\Console
注册可用的命令并执行
Console::camelCaseToDash() — Method in class Console
将小驼峰转换为xx-xx返回
ColourClass in namespace Cml\Console\Format
命令行工具-控制台颜色处理类
Colour::colour() — Method in class Colour
返回格式化后的字符串
ContainerClass in namespace Cml
ControllerClass in namespace Cml
框架基础控制器,所有控制器都要继承该类
Base::chunk() — Method in class Base
组块结果集-此方法前调用paramsAutoReset无效
Base::conditionFactory() — Method in class Base
where 语句组装工厂
Base::columns() — Method in class Base
选择列
MongoDB::conditionFactory() — Method in class MongoDB
where 语句组装工厂
MongoDB::columns() — Method in class MongoDB
选择列
MongoDB::count() — Method in class MongoDB
获取count(字段名或*)的结果
MongoDB::connect() — Method in class MongoDB
Db连接
MongoDB::close() — Method in class MongoDB
关闭连接
MongoDB::commit() — Method in class MongoDB
提交事务-MongoDb不支持
MongoDB::callProcedure() — Method in class MongoDB
调用存储过程-MongoDb不支持
Pdo::count() — Method in class Pdo
获取 COUNT(字段名或*) 的结果
Pdo::connect() — Method in class Pdo
Db连接
Pdo::close() — Method in class Pdo
关闭连接
Pdo::commit() — Method in class Pdo
提交事务
Pdo::callProcedure() — Method in class Pdo
调用存储过程
Debug::catcher() — Method in class Debug
错误handler
Debug::codeSnippet() — Method in class Debug
显示代码片段
CacheConnectFailExceptionClass in namespace Cml\Exception
缓存连接失败异常类
ConfigNotFoundExceptionClass in namespace Cml\Exception
配置文件加载失败异常类
ControllerNotFoundExceptionClass in namespace Cml\Exception
控制器未找到异常类
CookieClass in namespace Cml\Http
Cookie管理类,封装了对Cookie的操作
Cookie::clear() — Method in class Cookie
清空Cookie值
Request::curl() — Method in class Request
发起curl请求
Session::clear() — Method in class Session
Session-清空session
CacheClass in namespace Cml\Interfaces
缓存驱动抽象接口
ConsoleClass in namespace Cml\Interfaces
命令行驱动抽象接口
Db::chunk() — Method in class Db
组块结果集
Db::conditionFactory() — Method in class Db
where 语句组装工厂
Db::columns() — Method in class Db
选择列
Db::count() — Method in class Db
获取 COUNT(字段名或*) 的结果
Db::connect() — Method in class Db
Db连接
Db::commit() — Method in class Db
提交事务
Db::callProcedure() — Method in class Db
调用存储过程 如 : callProcedure('user_check ?,? ', [1, 1], true) pdo
Db::close() — Method in class Db
关闭连接
Logger::critical() — Method in class Logger
紧急情况
Log::critical() — Method in class Log
添加critical类型的日志
Log::catcherPhpError() — Method in class Log
错误日志handler
Base::critical() — Method in class Base
紧急情况
Model::closeDb() — Method in class Model
当程序连接N个db的时候用于释放于用连接以节省内存
Model::cache() — Method in class Model
获取cache实例
Model::columns() — Method in class Model
选择列
Secure::checkCsrf() — Method in class Secure
防止csrf跨站攻击
Secure::checkToken() — Method in class Secure
类加载-检测token值
Session::close() — Method in class Session
session close
StaticResource::createSymbolicLink() — Method in class StaticResource
生成软链接
Acl::checkAcl() — Method in class Acl
检查对应的权限
$EmailProperty in class Email
Excel::config() — Method in class Excel
Excel基础配置
File::createFile() — Method in class File
创建空文件
File::copyFile() — Method in class File
拷贝一个新文件
File::createDir() — Method in class File
创建目录
Ftp::connect() — Method in class Ftp
FTP-ftp连接
Ftp::changename() — Method in class Ftp
FTP-更改ftp上的文件名称
Ftp::close() — Method in class Ftp
FTP-关闭链接
Http::curlDownload() — Method in class Http
采集远程文件
Quenue::count() — Method in class Quenue
队列-队列中总共有多少值
Quenue::clear() — Method in class Quenue
队列-清空队列数据
$SocketProperty in class Socket
保存连接资源符
$SocketProperty in class Socket
是否建立了连接
Socket::connect() — Method in class Socket
创建连接
VerifyCode::CnVerify() — Method in class VerifyCode
中文验证码
VerifyCode::calocVerify() — Method in class VerifyCode
生成数字计算题验证码
VerifyCode::checkCode() — Method in class VerifyCode
校验验证码

D

Apc::delete() — Method in class Apc
删除对象
Apc::decrement() — Method in class Apc
自减
File::delete() — Method in class File
删除缓存
File::decrement() — Method in class File
自减
Memcache::delete() — Method in class Memcache
删除对象
Memcache::decrement() — Method in class Memcache
自减
Redis::delete() — Method in class Redis
删除对象
Redis::decrement() — Method in class Redis
自减
$CmlProperty in class Cml
是否为debug模式
Cml::doteToArr() — Method in class Cml
以.的方式获取数组的值
DialogClass in namespace Cml\Console\Component
命令行工具-对话框组件
Console::dashToCamelCase() — Method in class Console
将xx-xx转换为小驼峰返回
MongoDB::delete() — Method in class MongoDB
根据key值删除数据
MongoDB::decrement() — Method in class MongoDB
指定字段的值-1
Pdo::delete() — Method in class Pdo
根据key值删除数据
Pdo::decrement() — Method in class Pdo
指定字段的值-1
DebugClass in namespace Cml
Debug调试处理类,debug=true时负责调试相关信息的收集及ui的展示
Encry::decrypt() — Method in class Encry
解密方法
Cookie::delete() — Method in class Cookie
删除某个Cookie值
Session::delete() — Method in class Session
删除session值
Cache::delete() — Method in class Cache
删除对象
Cache::decrement() — Method in class Cache
自减
DbClass in namespace Cml\Interfaces
Orm 数据库抽象接口
Db::delete() — Method in class Db
根据key值删除数据
Db::decrement() — Method in class Db
指定字段的值-1
DebugClass in namespace Cml\Interfaces
Debug 抽象接口
Logger::debug() — Method in class Logger
debug 详情
Route::delete() — Method in class Route
增加delete访问方式路由
View::display() — Method in class View
抽象display
Log::debug() — Method in class Log
添加debug类型的日志
Base::debug() — Method in class Base
debug 详情
Model::db() — Method in class Model
获取db实例
Model::delByColumn() — Method in class Model
通过主键删除数据-快捷方法
Route::delete() — Method in class Route
增加delete访问方式路由
Blade::display() — Method in class Blade
抽象display
FastRoute::delete() — Method in class FastRoute
增加delete访问方式路由
Route::delete() — Method in class Route
增加delete访问方式路由
Session::destroy() — Method in class Session
session 销毁
File::delFile() — Method in class File
删除文件
File::delDir() — Method in class File
删除目录
Ftp::download() — Method in class Ftp
FTP-文件下载
Ftp::delDir() — Method in class Ftp
FTP-删除文件目录
Ftp::delFile() — Method in class Ftp
FTP-删除文件
Http::download() — Method in class Http
下载文件 可以指定下载显示的文件名,并自动发送相应的Header信息 如果指定了content参数,则下载该参数的内容
Socket::disconnect() — Method in class Socket
关闭连接
Excel::display() — Method in class Excel
生成Excel文件
Html::display() — Method in class Html
模板显示 调用内置的模板引擎显示方法,
Html::displayWithLayout() — Method in class Html
使用布局模板并渲染
Json::display() — Method in class Json
输出数据
Xml::display() — Method in class Xml
输出数据
dBugClass in namespace Cml
debug依赖的第三方库

E

Redis::exists() — Method in class Redis
判断key值是否存在
Command::execute() — Method in class Command
命令的入口方法
ApiAutoTest::execute() — Method in class ApiAutoTest
命令的入口方法
CreateSymbolicLink::execute() — Method in class CreateSymbolicLink
命令的入口方法
AddTask::execute() — Method in class AddTask
添加一个后台任务
Reload::execute() — Method in class Reload
查看守护进程运行状态
RmTask::execute() — Method in class RmTask
添加一个后台任务
Start::execute() — Method in class Start
启动守护进程
Status::execute() — Method in class Status
查看守护进程运行状态
Stop::execute() — Method in class Stop
查看守护进程运行状态
Help::execute() — Method in class Help
执行命令入口
Controller::execute() — Method in class Controller
创建控制器
Model::execute() — Method in class Model
回滚迁移
Breakpoint::execute() — Method in class Breakpoint
Toggle the breakpoint.
Create::execute() — Method in class Create
创建一个迁移
Migrate::execute() — Method in class Migrate
运行迁移
Rollback::execute() — Method in class Rollback
回滚迁移
SeedCreate::execute() — Method in class SeedCreate
创建一个新的seeder
SeedRun::execute() — Method in class SeedRun
执行 seeders.
Status::execute() — Method in class Status
获取迁移信息
RunAction::execute() — Method in class RunAction
命令的入口方法
Pdo::execute() — Method in class Pdo
执行预处理语句
EncryClass in namespace Cml
加密解密处理类
Encry::encrypt() — Method in class Encry
加密方法
ErrorOrExceptionClass in namespace Cml
EnvironmentClass in namespace Cml\Interfaces
环境解析实现接口
ErrorOrExceptionClass in namespace Cml\Interfaces
系统错误及异常捕获驱动抽象接口
Logger::emergency() — Method in class Logger
系统不可用
Logger::error() — Method in class Logger
运行时出现的错误,不需要立刻采取行动,但必须记录下来以备检测。
Log::error() — Method in class Log
添加error类型的日志
Log::emergency() — Method in class Log
添加critical类型的日志
Base::emergency() — Method in class Base
系统不可用
Base::error() — Method in class Base
运行时出现的错误,不需要立刻采取行动,但必须记录下来以备检测。
Route::executeCallableRoute() — Method in class Route
执行闭包路由
EnvironmentClass in namespace Cml\Service
自带环境解析实现development/product/cli三种
EmailClass in namespace Cml\Vendor
stmp邮件发送处理类
ExcelClass in namespace Cml\Vendor
Excel生成类
Excel::excelXls() — Method in class Excel
生成Excel文件
Html::end() — Method in class Html
静态页面-生成静态页面,$key值是生成页面的唯一标识符
Socket::error() — Method in class Socket
错误处理
ExcelClass in namespace Cml\View
视图 Excel渲染引擎

F

FileClass in namespace Cml\Cache
文件缓存驱动
Command::format() — Method in class Command
格式化文本
FormatClass in namespace Cml\Console\Format
格式化输出处理类
Format::format() — Method in class Format
格式化文本
Pdo::forceIndex() — Method in class Pdo
强制使用索引
ErrorOrException::fatalError() — Method in class ErrorOrException
致命错误捕获
FileCanNotReadableExceptionClass in namespace Cml\Exception
文件无法读取异常类
Response::fullUrl() — Method in class Response
URL组装(带域名端口) 支持不同URL模式 eg: \Cml\Http\Response::fullUrl('Home/Blog/cate/id/1')
ErrorOrException::fatalError() — Method in class ErrorOrException
致命错误捕获
FileClass in namespace Cml\Lock
锁机制File驱动
Base::format() — Method in class Base
格式化日志
FileClass in namespace Cml\Logger
Log 文件驱动实现
Secure::filterScript() — Method in class Secure
过滤javascript,css,iframes,object等标签
Secure::filterStr() — Method in class Secure
过滤特殊字符
Secure::filterSql() — Method in class Secure
过滤sql语句
Secure::filterAll() — Method in class Secure
FastRouteClass in namespace Cml\Service
Url解析类,负责路由及Url的解析 self::get('blog/bb/{aid:[0-9]+}' , 'adminbase/Public/login');
Whoops::fatalError() — Method in class Whoops
致命错误捕获
FileClass in namespace Cml\Vendor
文件操作类
FtpClass in namespace Cml\Vendor
Ftp操作类
Ftp::ftpChmod() — Method in class Ftp
FTP-改变文件权限值
Ftp::fileSize() — Method in class Ftp
FTP-返回文件大小
Http::fsockopenDownload() — Method in class Http
使用 fsockopen 通过 HTTP 协议直接访问(采集)远程文件 如果主机或服务器没有开启 CURL 扩展可考虑使用 fsockopen 比 CURL 稍慢,但性能稳定
$PageProperty in class Page
起始行数
Html::fetch() — Method in class Html
渲染模板获取内容 调用内置的模板引擎显示方法,

G

Apc::get() — Method in class Apc
根据key取值
Apc::getInstance() — Method in class Apc
返回实例便于操作未封装的方法
File::get() — Method in class File
获取缓存
File::getInstance() — Method in class File
返回实例便于操作未封装的方法
Memcache::getDriverType() — Method in class Memcache
返回memcache驱动类型 加锁时用
Memcache::get() — Method in class Memcache
根据key取值
Memcache::getInstance() — Method in class Memcache
返回实例便于操作未封装的方法
Redis::get() — Method in class Redis
根据key取值
Redis::getInstance() — Method in class Redis
返回实例便于操作未封装的方法
Cml::getContainer() — Method in class Cml
获得容器
Cml::getApplicationDir() — Method in class Cml
获取应用路径
Cml::getWarningLogLevel() — Method in class Cml
获取警告日志的等级列表
Cml::getFatalErrorLogLevel() — Method in class Cml
设置警告日志的等级列表
Config::get() — Method in class Config
获取配置参数不区分大小写
AbstractCommand::getConfig() — Method in class AbstractCommand
Gets the config.
AbstractCommand::getAdapter() — Method in class AbstractCommand
Gets the database adapter.
AbstractCommand::getManager() — Method in class AbstractCommand
Gets the migration manager.
Progress::getPercent() — Method in class Progress
获取百分比
Console::getCommand() — Method in class Console
获取某个命令
Console::getCommands() — Method in class Console
获取所有命令列表
Container::getAlias() — Method in class Container
获取绑定的别名
Base::getPk() — Method in class Base
获取表主键
Base::getOne() — Method in class Base
获取一条数据
Base::getOneValue() — Method in class Base
获取一列
Base::groupBy() — Method in class Base
分组
Base::getCacheVer() — Method in class Base
根据表名获取cache版本号
MongoDB::getTables() — Method in class MongoDB
获取当前db所有表名
MongoDB::getAllTableStatus() — Method in class MongoDB
获取当前数据库中所有表的信息
MongoDB::getDbFields() — Method in class MongoDB
获取表字段-因为mongodb中collection对字段是没有做强制一制的。这边默认获取第一条数据的所有字段返回
MongoDB::get() — Method in class MongoDB
根据key取出数据
MongoDB::getPk() — Method in class MongoDB
获取表主键 mongo直接返回 '_id'
MongoDB::groupBy() — Method in class MongoDB
分组 MongoDB中的聚合方式跟 sql不一样。这个操作屏蔽。如果要使用聚合直接使用MongoDB Command
MongoDB::getMongoDbAutoIncKey() — Method in class MongoDB
获取自增id-需要先初始化数据 如: db.mongoinckeycol.insert({id:0, 'table' : 'post'}) 即初始化帖子表(post)自增初始值为0
Pdo::getTables() — Method in class Pdo
获取当前db所有表名
Pdo::getAllTableStatus() — Method in class Pdo
获取当前数据库中所有表的信息
Pdo::getDbFields() — Method in class Pdo
获取表字段
Pdo::get() — Method in class Pdo
根据key取出数据
Debug::getSqls() — Method in class Debug
返回执行的sql语句
Debug::getTipInfo() — Method in class Debug
返回提示信息
Debug::getIncludeFiles() — Method in class Debug
返回包含的文件
Debug::getIncludeLib() — Method in class Debug
返回包含的类库
Debug::getUseTime() — Method in class Debug
返回程序运行所消耗时间
Debug::getUseMemory() — Method in class Debug
返回程序运行所消耗的内存
Cookie::get() — Method in class Cookie
获取某个Cookie值
Input::getString() — Method in class Input
获取get string数据
Input::getInt() — Method in class Input
获取get int数据
Input::getBool() — Method in class Input
获取get bool数据
Request::getService() — Method in class Request
获取SERVICE信息
Request::getBinaryData() — Method in class Request
获取POST过来的二进制数据,与手机端交互
Session::get() — Method in class Session
获取session值
Cache::get() — Method in class Cache
根据key取值
Cache::getInstance() — Method in class Cache
返回实例便于操作未封装的方法
Console::getCommand() — Method in class Console
获取某个命令
Console::getCommands() — Method in class Console
获取所有命令列表
Db::getTables() — Method in class Db
获取当前db所有表名
Db::getAllTableStatus() — Method in class Db
获取当前数据库中所有表的信息
Db::getDbFields() — Method in class Db
获取表字段
Db::get() — Method in class Db
根据key取出数据
Db::getPk() — Method in class Db
获取表主键
Db::getOne() — Method in class Db
获取一条数据
Db::getOneValue() — Method in class Db
获取一列
Db::groupBy() — Method in class Db
分组
Environment::getEnv() — Method in class Environment
获取当前环境名称
Route::getSubDirName() — Method in class Route
获取子目录路径。若项目在子目录中的时候为子目录的路径如/sub_dir/、否则为/
Route::getAppName() — Method in class Route
获取应用目录可以是多层目录。如web、admin等.404的时候也必须有值用于绑定系统命令
Route::getControllerName() — Method in class Route
获取控制器名称不带Controller后缀
Route::getActionName() — Method in class Route
获取控制器名称方法名称
Route::getFullPathNotContainSubDir() — Method in class Route
获取不含子目录的完整路径 如: web/Goods/add
Route::getControllerAndAction() — Method in class Route
返回要执行的控制器及方法。必须返回一个包含 controller和action键的数组 如:['class' => 'adminbase/Controller/IndexController', 'action' => 'index'] 在parseUrl之后框架会根据解析得到的参数去自动载入相关的配置文件然后调用Cml::getContainer()->make('cml_route')->getControllerAndAction();执行相应的方法
Route::get() — Method in class Route
增加get访问方式路由
Route::group() — Method in class Route
分组路由
View::getValue() — Method in class View
获取赋到模板的值
Lang::get() — Method in class Lang
获取语言 不区分大小写 获取值的时候可以动态传参转出语言值 如:\Cml\Lang::get('CMLDEBUGADDCLASSTIP', '\Cml\Base') 取出CMLDEBUGADDCLASSTIP语言变量且将\Cml\base替换语言中的%s
Lock::getLocker() — Method in class Lock
获取Lock实例
Model::getInstance() — Method in class Model
初始化一个Model实例
Model::getTableName() — Method in class Model
获取表名
Model::getByColumn() — Method in class Model
通过某个字段获取单条数据-快捷方法
Model::getMultiByColumn() — Method in class Model
通过某个字段获取多条数据-快捷方法
Model::getTotalNums() — Method in class Model
获取数据的总数
Model::getList() — Method in class Model
获取数据列表
Model::getListByPaginate() — Method in class Model
以分页的方式获取数据列表
Model::getDbConf() — Method in class Model
获取当前Model的数据库配置串
Model::groupBy() — Method in class Model
分组
Queue::getQueue() — Method in class Queue
获取Queue
Route::get() — Method in class Route
增加get访问方式路由
Route::group() — Method in class Route
分组路由
Route::getPathInfo() — Method in class Route
获取解析后的pathInfo信息
Secure::getToken() — Method in class Secure
类加载-获取全局TOKEN,防止CSRF攻击
Environment::getEnv() — Method in class Environment
获取当前环境名称
FastRoute::getSubDirName() — Method in class FastRoute
获取子目录路径。若项目在子目录中的时候为子目录的路径如/sub_dir/、否则为/
FastRoute::getAppName() — Method in class FastRoute
获取应用目录可以是多层目录。如web、admin等.404的时候也必须有值用于绑定系统命令
FastRoute::getControllerName() — Method in class FastRoute
获取控制器名称不带Controller后缀
FastRoute::getActionName() — Method in class FastRoute
获取控制器名称方法名称
FastRoute::getFullPathNotContainSubDir() — Method in class FastRoute
获取不含子目录的完整路径 如: web/Goods/add
FastRoute::getControllerAndAction() — Method in class FastRoute
获取要执行的控制器类名及方法
FastRoute::get() — Method in class FastRoute
增加get访问方式路由
FastRoute::group() — Method in class FastRoute
分组路由
Route::getSubDirName() — Method in class Route
获取子目录路径。若项目在子目录中的时候为子目录的路径如/sub_dir/、否则为/
Route::getAppName() — Method in class Route
获取应用目录可以是多层目录。如web、admin等.404的时候也必须有值用于绑定系统命令
Route::getControllerName() — Method in class Route
获取控制器名称不带Controller后缀
Route::getActionName() — Method in class Route
获取控制器名称方法名称
Route::getFullPathNotContainSubDir() — Method in class Route
获取不含子目录的完整路径 如: web/Goods/add
Route::getControllerAndAction() — Method in class Route
获取要执行的控制器类名及方法
Route::get() — Method in class Route
增加get访问方式路由
Route::group() — Method in class Route
分组路由
Session::gc() — Method in class Session
session gc回收
AnnotationToDoc::getAnnotationParams() — Method in class AnnotationToDoc
解析获取某控制器注释参数信息
ProcessManage::getStatus() — Method in class ProcessManage
检查脚本运气状态
Acl::getTableName() — Method in class Acl
获取表名
Acl::getLoginInfo() — Method in class Acl
获取当前登录用户的信息
Acl::getMenus() — Method in class Acl
获取有权限的菜单列表
File::getFileInfo() — Method in class File
获取文件信息
Html::get() — Method in class Html
静态页面-获取静态页面
Http::getHeaderInfo() — Method in class Http
显示HTTP Header 信息
Image::getImageInfo() — Method in class Image
取得图像信息
Ip2Region::getLong() — Method in class Ip2Region
read a long from a byte buffer
IpLocation::getlocation() — Method in class IpLocation
根据所给 IP 地址或域名返回所在地区信息
IpLocation::get_client_ip() — Method in class IpLocation
获取客户端IP地址
PhpThread::getSuccessInfo() — Method in class PhpThread
已完成的任务队列(查看处理结果)
Quenue::get() — Method in class Quenue
队列-从队列中获取一个最早放进队列的值
Tree::getTree() — Method in class Tree
获取树--返回格式化后的数据
Tree::getTreeNoFormat() — Method in class Tree
获取树--返回数组
Tree::getChild() — Method in class Tree
获取子集
Tree::getParent() — Method in class Tree
获取父集
UploadFile::getErrorInfo() — Method in class UploadFile
取得最后一次错误信息
UploadFile::getSuccessInfo() — Method in class UploadFile
取得上传文件的信息
Validate::getErrors() — Method in class Validate
获取所有错误信息
View::getEngine() — Method in class View
获取渲染引擎
Base::getValue() — Method in class Base
获取赋到模板的值

H

HelpClass in namespace Cml\Console\Commands
默认的帮助命令
Console::hasCommand() — Method in class Console
判断是否有无命令
Base::having() — Method in class Base
having语句
MongoDB::having() — Method in class MongoDB
having语句 MongoDB不支持此命令
Request::host() — Method in class Request
获取主机名称
Console::hasCommand() — Method in class Console
判断是否有无命令
Db::having() — Method in class Db
having语句
Model::having() — Method in class Model
分组
Plugin::hook() — Method in class Plugin
执行插件
Secure::htmlspecialchars() — Method in class Secure
增强的htmlspecialchars
Secure::htmlspecialcharsDecode() — Method in class Secure
增强的htmlspecialchars_decode
HtmlClass in namespace Cml\Vendor
Html 扩展类 静态页面生成
HttpClass in namespace Cml\Vendor
Http扩展类,用于采集、文件下载等
HtmlClass in namespace Cml\View
视图 html渲染引擎

I

Apc::increment() — Method in class Apc
自增
File::increment() — Method in class File
自增
Memcache::increment() — Method in class Memcache
自增
Redis::increment() — Method in class Redis
自增
Cml::isEmergencyMode() — Method in class Cml
是否开启全局紧急模式
$ConfigProperty in class Config
配置文件类型
Config::init() — Method in class Config
Progress::increment() — Method in class Progress
进入+ x
InputClass in namespace Cml\Console\IO
命令行工具-输入解析类
Container::isBind() — Method in class Container
判断是否绑定过某服务
Container::isExistAlias() — Method in class Container
判断别名是否存在
MongoDB::insertId() — Method in class MongoDB
获取上一INSERT的主键值
MongoDB::increment() — Method in class MongoDB
指定字段的值+1
Pdo::insertId() — Method in class Pdo
获取上一INSERT的主键值
Pdo::increment() — Method in class Pdo
指定字段的值+1
Cookie::isExist() — Method in class Cookie
判断Cookie是否存在
InputClass in namespace Cml\Http
输入过滤管理类,用户输入数据通过此类获取
Request::ip() — Method in class Request
获取IP地址
Request::isMobile() — Method in class Request
判断是否为手机浏览器
Request::isPost() — Method in class Request
判断是否为POST请求
Request::isGet() — Method in class Request
判断是否为GET请求
Request::isAjax() — Method in class Request
判断是否为AJAX请求
Request::isCli() — Method in class Request
判断是否以cli方式运行
Cache::increment() — Method in class Cache
自增
Db::insertId() — Method in class Db
获取上一INSERT的主键值
Db::increment() — Method in class Db
指定字段的值+1
Logger::info() — Method in class Logger
重要事件
Log::info() — Method in class Log
添加info类型的日志
Base::info() — Method in class Base
重要事件
Session::init() — Method in class Session
初始化
Acl::isSuperUser() — Method in class Acl
判断当前登录用户是否为超级管理员
ImageClass in namespace Cml\Vendor
图片处理扩展类
Ip2RegionClass in namespace Cml\Vendor
ip地址查询库
IpLocationClass in namespace Cml\Vendor
IP 地理位置查询类 本类用来兼容旧版本,建议使用Ip2Region类。
StringProcess::isUtf8() — Method in class StringProcess
检查字符串是否是UTF8编码
Validate::isRequire() — Method in class Validate
数据基础验证-是否必须填写的参数
Validate::isString() — Method in class Validate
数据基础验证-是否为字符串参数
Validate::isGt() — Method in class Validate
数据基础验证-是否大于
Validate::isLt() — Method in class Validate
数据基础验证-是否小于
Validate::isGte() — Method in class Validate
数据基础验证-是否大于等于
Validate::isLte() — Method in class Validate
数据基础验证-是否小于等于
Validate::isBetween() — Method in class Validate
数据基础验证-数字的值是否在区间内
Validate::isLengthGt() — Method in class Validate
数据基础验证-字符串长度是否大于
Validate::isLengthLt() — Method in class Validate
数据基础验证-字符串长度是否小于
Validate::isLengthBetween() — Method in class Validate
长度是否在某区间内(包含边界)
Validate::isLengthGte() — Method in class Validate
数据基础验证-字符串长度是否大于等于
Validate::isLengthLte() — Method in class Validate
数据基础验证-字符串长度是否小于等于
Validate::isIn() — Method in class Validate
数据基础验证-判断数据是否在数组中
Validate::isNotIn() — Method in class Validate
数据基础验证-判断数据是否在数组中
Validate::isLength() — Method in class Validate
数据基础验证-检测字符串长度
Validate::isEmpty() — Method in class Validate
数据基础验证-是否是空字符串
Validate::isArr() — Method in class Validate
数据基础验证-检测数组,数组为空时候也返回false
Validate::isEmail() — Method in class Validate
数据基础验证-是否是Email 验证:xxx@qq.com
Validate::isIp() — Method in class Validate
数据基础验证-是否是IP
Validate::isNumber() — Method in class Validate
数据基础验证-是否是数字类型
Validate::isInt() — Method in class Validate
数据基础验证-是否是整型
Validate::isBool() — Method in class Validate
数据基础验证-是否是布尔类型
Validate::isCard() — Method in class Validate
数据基础验证-是否是身份证
Validate::isMobile() — Method in class Validate
数据基础验证-是否是移动电话 验证:1385810XXXX
Validate::isPhone() — Method in class Validate
数据基础验证-是否是电话 验证:0571-xxxxxxxx
Validate::isUrl() — Method in class Validate
数据基础验证-是否是URL 验证:http://www.baidu.com
Validate::isZip() — Method in class Validate
数据基础验证-是否是邮政编码 验证:311100
Validate::isQq() — Method in class Validate
数据基础验证-是否是QQ
Validate::isEnglish() — Method in class Validate
数据基础验证-是否是英文字母
Validate::isChinese() — Method in class Validate
数据基础验证-是否是中文
Validate::isSafeAccount() — Method in class Validate
检查是否是安全的账号
Validate::isSafeNickname() — Method in class Validate
检查是否是安全的昵称
Validate::isSafePassword() — Method in class Validate
检查是否是安全的密码
Validate::isIdentifier() — Method in class Validate
检查是否是正确的标识符

J

Base::join() — Method in class Base
join内联结
MongoDB::join() — Method in class MongoDB
join内联结 MongoDB不支持此命令
Db::join() — Method in class Db
join内联结
JsonClass in namespace Cml\View
视图 Json渲染引擎

L

Config::load() — Method in class Config
从文件载入Config
Controller::locker() — Method in class Controller
获取Lock实例
Base::lBrackets() — Method in class Base
where条件增加左括号
Base::limit() — Method in class Base
LIMIT
Base::leftJoin() — Method in class Base
leftJoin左联结
MongoDB::leftJoin() — Method in class MongoDB
leftJoin左联结 MongoDB不支持此命令
MongoDB::lBrackets() — Method in class MongoDB
在$or操作中让一组条件支持多个条件
MongoDB::limit() — Method in class MongoDB
LIMIT
Db::lBrackets() — Method in class Db
where条件增加左括号
Db::limit() — Method in class Db
LIMIT
Db::leftJoin() — Method in class Db
leftJoin左联结
LockClass in namespace Cml\Interfaces
Lock 抽象接口
Lock::lock() — Method in class Lock
上锁
LoggerClass in namespace Cml\Interfaces
Logger 抽象接口
Logger::log() — Method in class Logger
任意等级的日志记录
Queue::lPush() — Method in class Queue
从列表头入队
Queue::lPop() — Method in class Queue
从列表头出队
LangClass in namespace Cml
语言包读写类、负责语言包的读取
LockClass in namespace Cml
Lock处理类提供统一的锁机制
Lock::lock() — Method in class Lock
上锁
File::lock() — Method in class File
上锁
Memcache::lock() — Method in class Memcache
上锁
Redis::lock() — Method in class Redis
上锁
LogClass in namespace Cml
Log处理类,简化的psr-3日志接口,负责Log的处理
File::log() — Method in class File
任意等级的日志记录
Redis::log() — Method in class Redis
任意等级的日志记录
Redis::lPush() — Method in class Redis
从列表头入队
Redis::lPop() — Method in class Redis
从列表头出队
Route::loadAppRoute() — Method in class Route
载入应用单独的路由
Acl::logout() — Method in class Acl
登出
StringProcess::levenshteinDistance() — Method in class StringProcess
计算两个字符串间的levenshteinDistance
Validate::label() — Method in class Validate
设置字段显示别名

M

MemcacheClass in namespace Cml\Cache
memcache缓存驱动
Cml::montFor404Page() — Method in class Cml
未找到控制器的时候设置勾子
ModelClass in namespace Cml\Console\Commands\Make
创建Model
MigrateClass in namespace Cml\Console\Commands\Migrate
数据库迁移-执行迁移
Container::make() — Method in class Container
实例化服务
Controller::model() — Method in class Controller
获取模型方法
MongoDBClass in namespace Cml\Db\MongoDB
Orm MongoDB数据库MongoDB实现类
MongoDB::max() — Method in class MongoDB
获取 $max 的结果
MongoDB::min() — Method in class MongoDB
获取 $min 的结果
MongoDB::mongoDbDistinct() — Method in class MongoDB
MongoDb的distinct封装
MongoDB::mongoDbAggregate() — Method in class MongoDB
MongoDb的aggregate封装
Pdo::max() — Method in class Pdo
获取 MAX(字段名) 的结果
Pdo::min() — Method in class Pdo
获取 MIN(字段名) 的结果
MkdirErrorExceptionClass in namespace Cml\Exception
创建目录失败异常类
Db::max() — Method in class Db
获取 MAX(字段名或*) 的结果
Db::min() — Method in class Db
获取 MIN(字段名或*) 的结果
MemcacheClass in namespace Cml\Lock
锁机制Memcache驱动
ModelClass in namespace Cml
基础Model类,在CmlPHP中负责数据的存取(目前包含db/cache以及为了简化操作db而封装的快捷方法)
Model::mapDbAndTable() — Method in class Model
自动根据 db属性执行$this->db(xxx)方法; table/tablePrefix属性执行$this->db('xxx')->table('tablename', 'tablePrefix')方法
Plugin::mount() — Method in class Plugin
挂载插件到钩子 \Cml\Plugin::mount('hookName', [ function() {//匿名函数 }, '\App\Test\Plugins' => 'run' //对象, '\App\Test\Plugins::run'////静态方法 ]);
File::moveFile() — Method in class File
移动文件
Ftp::makeDir() — Method in class Ftp
FTP-创建目录
Ftp::mdtm() — Method in class Ftp
FTP-文件修改时间
Http::mimeContentType() — Method in class Http
获取文件的mime_content类型
Image::makeThumb() — Method in class Image
生成缩略图
Ip2Region::memorySearch() — Method in class Ip2Region
根据所给IP地址或域名返回所在地区信息memory
Validate::message() — Method in class Validate
自定义错误提示信息

N

$CmlProperty in class Cml
当前时间
$CmlProperty in class Cml
当前时间含微秒
Base::noCache() — Method in class Base
标记本次查询不使用缓存
Logger::notice() — Method in class Logger
一般性重要的事件。
Log::notice() — Method in class Log
添加notice类型的日志
Base::notice() — Method in class Base
一般性重要的事件。
Model::noCache() — Method in class Model
标记本次查询不使用缓存
Ftp::nlist() — Method in class Ftp
FTP-FTP上的文件列表
$PageProperty in class Page
列表每页显示条数
VerifyCode::numVerify() — Method in class VerifyCode
生成图像数字验证码

O

Cml::onlyInitEnvironmentNotRunController() — Method in class Cml
某些场景(如:跟其它项目混合运行的时候)只希望使用CmlPHP中的组件而不希望运行控制器,用来替代runApp
OutputClass in namespace Cml\Console\IO
命令行工具-输出管道
Base::orderBy() — Method in class Base
排序
MongoDB::orderBy() — Method in class MongoDB
排序
Request::operatingSystem() — Method in class Request
返回操作系统类型
Db::orderBy() — Method in class Db
排序
Route::options() — Method in class Route
增加options访问方式路由
Model::orderBy() — Method in class Model
排序
Route::options() — Method in class Route
增加options访问方式路由
FastRoute::options() — Method in class FastRoute
增加options访问方式路由
Route::options() — Method in class Route
增加options访问方式路由
Session::open() — Method in class Session
session open
Image::output() — Method in class Image
输出图片
VerifyCode::output() — Method in class VerifyCode
输出图片

P

ProgressClass in namespace Cml\Console\Component
命令行工具-进度条组件
Input::parse() — Method in class Input
解析参数
Base::paginate() — Method in class Base
分页获取数据
Base::plunk() — Method in class Base
获取数据列值列表
Base::paramsAutoReset() — Method in class Base
orm参数是否自动重置, 默认在执行语句后会重置orm参数,包含查询的表、字段信息、条件等信息
PdoClass in namespace Cml\Db\MySql
Orm MySql数据库Pdo实现类
Pdo::prepare() — Method in class Pdo
预处理语句
PdoConnectExceptionClass in namespace Cml\Exception
Pdo连接失败异常类
PhpExtendNotInstallClass in namespace Cml\Exception
php扩展未安装异常类
Input::postString() — Method in class Input
获取post string数据
Input::postInt() — Method in class Input
获取post int数据
Input::postBool() — Method in class Input
获取post bool数据
$SessionProperty in class Session
session的前缀
Db::paginate() — Method in class Db
分页获取数据
Db::plunk() — Method in class Db
获取数据列值列表
Route::parseUrl() — Method in class Route
解析url参数 框架在完成必要的启动步骤后。会调用 Cml::getContainer()->make('cml_route')->parseUrl();进行路由地址解析供上述几个方法调用。
Route::post() — Method in class Route
增加post访问方式路由
Route::put() — Method in class Route
增加put访问方式路由
Route::patch() — Method in class Route
增加patch访问方式路由
$BaseProperty in class Base
php错误相对应的错误等级
Model::paramsAutoReset() — Method in class Model
orm参数是否自动重置, 默认在执行语句后会重置orm参数, 包含查询的表、字段信息、条件等信息
PluginClass in namespace Cml
CmlPHP中的插件实现类,负责钩子的绑定和插件的执行
Route::parsePathInfo() — Method in class Route
解析url获取pathinfo
Route::post() — Method in class Route
增加post访问方式路由
Route::put() — Method in class Route
增加put访问方式路由
Route::patch() — Method in class Route
增加patch访问方式路由
FastRoute::parseUrl() — Method in class FastRoute
解析url
FastRoute::post() — Method in class FastRoute
增加POST访问方式路由
FastRoute::put() — Method in class FastRoute
增加put访问方式路由
FastRoute::patch() — Method in class FastRoute
增加patch访问方式路由
Route::parseUrl() — Method in class Route
解析url
Route::post() — Method in class Route
增加post访问方式路由
Route::put() — Method in class Route
增加put访问方式路由
Route::patch() — Method in class Route
增加patch访问方式路由
AnnotationToDoc::parse() — Method in class AnnotationToDoc
从注释解析生成文档
ProcessManageClass in namespace Cml\Tools\Daemon
守护进程工作进程工作类
StaticResource::parseResourceUrl() — Method in class StaticResource
解析一个静态资源的地址
StaticResource::parseResourceFile() — Method in class StaticResource
解析一个静态资源的内容
PageClass in namespace Cml\Vendor
分页类,对外系统现在一般使用js分页很少用到php分页了
$PageProperty in class Page
页数跳转时要带的参数
PhpThreadClass in namespace Cml\Vendor
php多线程工作类
PingyinClass in namespace Cml\Vendor
中文转拼音类
Pingyin::pinyin() — Method in class Pingyin
中文转拼音

Q

QueueClass in namespace Cml\Interfaces
队列驱动抽象接口
QueueClass in namespace Cml
队列调度中心,封装的队列的操作
QuenueClass in namespace Cml\Vendor
队列实现类

R

RedisClass in namespace Cml\Cache
Redis缓存驱动
Cml::runApp() — Method in class Cml
启动应用
Cml::requireFile() — Method in class Cml
require 引入文件
ReloadClass in namespace Cml\Console\Commands\DaemonProcessManage
reload
RmTaskClass in namespace Cml\Console\Commands\DaemonProcessManage
删除一个后台任务
RollbackClass in namespace Cml\Console\Commands\Migrate
数据库迁移-回滚
RunActionClass in namespace Cml\Console\Commands
创建静态文件资源目录软链接
Box::render() — Method in class Box
渲染文本并返回
Console::run() — Method in class Console
运行命令
Controller::runAppController() — Method in class Controller
运行对应的控制器
Base::rBrackets() — Method in class Base
where条件增加右括号
Base::rightJoin() — Method in class Base
rightJoin右联结
Base::resetAndClear() — Method in class Base
重置所有orm参数及绑定
MongoDB::runMongoQuery() — Method in class MongoDB
执行mongoQuery命令
MongoDB::runMongoBulkWrite() — Method in class MongoDB
执行mongoBulkWrite命令
MongoDB::runMongoCommand() — Method in class MongoDB
执行命令
MongoDB::rightJoin() — Method in class MongoDB
rightJoin右联结 MongoDB不支持此命令
MongoDB::rBrackets() — Method in class MongoDB
$or操作中关闭一组条件支持多个条件,启动另外一组条件
MongoDB::rollBack() — Method in class MongoDB
回滚事务-MongoDb不支持
Pdo::rollBack() — Method in class Pdo
回滚事务
Input::requestString() — Method in class Input
获取$_REQUEST string数据
Input::requestInt() — Method in class Input
获取$_REQUEST int数据
Input::requestBool() — Method in class Input
获取$_REQUEST bool数据
RequestClass in namespace Cml\Http
请求处理类,获取用户请求信息以发起curl请求
Request::requestTime() — Method in class Request
获取请求时间
ResponseClass in namespace Cml\Http
请求响应类,负责url跳转、url组装、http状态码响应等
Response::redirect() — Method in class Response
重定向
Console::run() — Method in class Console
运行命令
Db::rBrackets() — Method in class Db
where条件增加右括号
Db::rightJoin() — Method in class Db
rightJoin右联结
Db::rollBack() — Method in class Db
回滚事务
Queue::rPush() — Method in class Queue
从列表尾入队
Queue::rPop() — Method in class Queue
从列表尾出队
RouteClass in namespace Cml\Interfaces
路由驱动抽象接口
Route::rest() — Method in class Route
增加REST方式路由
RedisClass in namespace Cml\Lock
锁机制Redis驱动
RedisClass in namespace Cml\Logger
Log Redis驱动实现
RedisClass in namespace Cml\Queue
队列Redis驱动
Redis::rPush() — Method in class Redis
从列表尾入队
Redis::rPop() — Method in class Redis
从列表尾出队
Redis::rPopLpush() — Method in class Redis
弹入弹出
RouteClass in namespace Cml
Url解析类,负责路由及Url的解析
Route::rest() — Method in class Route
增加REST方式路由
FastRoute::rest() — Method in class FastRoute
增加REST方式路由
RouteClass in namespace Cml\Service
Url解析类,负责路由及Url的解析
Route::rest() — Method in class Route
增加REST方式路由
Session::read() — Method in class Session
session读取
AutoTest::run() — Method in class AutoTest
运行测试
ProcessManage::rmTask() — Method in class ProcessManage
删除任务
ProcessManage::reload() — Method in class ProcessManage
reload服务
ProcessManage::run() — Method in class ProcessManage
shell参数处理并启动守护进程
PhpThread::run() — Method in class PhpThread
执行线程队列里的所有任务
Socket::read() — Method in class Socket
从服务端读取数据
StringProcess::randString() — Method in class StringProcess
产生随机字串 //中文 需要php_mbstring扩展支持
Validate::rule() — Method in class Validate
绑定校验规则到字段
Validate::rules() — Method in class Validate
批量绑定校验规则到字段
Html::reset() — Method in class Html
重置所有参数

S

Apc::set() — Method in class Apc
存储对象
File::set() — Method in class File
写入缓存
Memcache::set() — Method in class Memcache
存储对象
Redis::set() — Method in class Redis
存储对象
Cml::showSystemTemplate() — Method in class Cml
渲染显示系统模板
Cml::setApplicationDir() — Method in class Cml
设置应用路径
Cml::setWarningLogLevel() — Method in class Cml
设置警告日志的等级列表
Cml::setFatalErrorLogLevel() — Method in class Cml
设置警告日志的等级列表
Config::set() — Method in class Config
设置配置【语言】 支持批量设置 /a.b.c方式设置
StartClass in namespace Cml\Console\Commands\DaemonProcessManage
启动守护进程
StatusClass in namespace Cml\Console\Commands\DaemonProcessManage
查看守护进程运行状态
StopClass in namespace Cml\Console\Commands\DaemonProcessManage
终止后台进程
AbstractCommand::setConfig() — Method in class AbstractCommand
Sets the config.
AbstractCommand::setAdapter() — Method in class AbstractCommand
Sets the database adapter.
AbstractCommand::setManager() — Method in class AbstractCommand
Sets the migration manager.
SeedCreateClass in namespace Cml\Console\Commands\Migrate
数据库迁移-创建seed
SeedRunClass in namespace Cml\Console\Commands\Migrate
数据库迁移-运行seed
StatusClass in namespace Cml\Console\Commands\Migrate
数据库迁移-获取迁移信息
Progress::start() — Method in class Progress
开始任务
Progress::success() — Method in class Progress
任务完成
Colour::setNoAnsi() — Method in class Colour
不输出 ansi字符
Format::setOptions() — Method in class Format
设置参数
Container::singleton() — Method in class Container
绑定单例服务
Base::setCacheVer() — Method in class Base
设置cache版本号
MongoDB::set() — Method in class MongoDB
根据key 新增 一条数据
MongoDB::setMulti() — Method in class MongoDB
新增多条数据
MongoDB::sum() — Method in class MongoDB
获取 $sum的结果
MongoDB::select() — Method in class MongoDB
获取多条数据
MongoDB::startTransAction() — Method in class MongoDB
开启事务-MongoDb不支持
MongoDB::savePoint() — Method in class MongoDB
设置一个事务保存点-MongoDb不支持
MongoDB::serverSupportFeature() — Method in class MongoDB
判断当前mongod服务是否支持某个版本的特性
Pdo::set() — Method in class Pdo
新增 一条数据
Pdo::setMulti() — Method in class Pdo
新增多条数据
Pdo::sum() — Method in class Pdo
获取 SUM(字段名) 的结果
Pdo::select() — Method in class Pdo
获取多条数据
Pdo::startTransAction() — Method in class Pdo
开启事务
Pdo::savePoint() — Method in class Pdo
设置一个事务保存点
Debug::start() — Method in class Debug
在脚本开始处调用获取脚本开始时间的微秒值\及内存的使用量
Debug::stop() — Method in class Debug
程序执行完毕,打印CmlPHP运行信息
Debug::stopAndShowDebugInfo() — Method in class Debug
输出调试消息
Cookie::set() — Method in class Cookie
设置某个Cookie值
Response::show404Page() — Method in class Response
显示404页面
Response::sendHttpStatus() — Method in class Response
发送http状态码相对应的信息
Response::sendContentTypeBySubFix() — Method in class Response
通过后缀名输出contentType
SessionClass in namespace Cml\Http
session 管理类,封装了对session的操作
Session::set() — Method in class Session
设置session值
Cache::set() — Method in class Cache
存储对象
Db::set() — Method in class Db
根据key 新增 一条数据
Db::setMulti() — Method in class Db
新增多条数据
Db::select() — Method in class Db
获取多条数据
Db::sum() — Method in class Db
获取 SUM(字段名或*) 的结果
Db::startTransAction() — Method in class Db
开启事务
Db::savePoint() — Method in class Db
设置一个事务保存点
Debug::stopAndShowDebugInfo() — Method in class Debug
程序执行完毕,打印CmlPHP运行信息 相关信息通过 \Cml\Debug获取 \Cml\Debug::getIncludeLib();获取框架载入的类文件 \Cml\Debug::getIncludeFiles();获取框架载入的模板文件缓存文件等 \Cml\Debug::getTipInfo();获取框架提示信息 \Cml\Debug::getSqls();获取orm执行的sql语句 \Cml\Debug::getUseTime();获取程序运行耗时 \Cml\Debug::getUseMemory();获取程序运行耗费的内存
Lock::setExpire() — Method in class Lock
设置锁的过期时间
Route::setUrlParams() — Method in class Route
修改解析得到的请求信息 含应用名、控制器、操作
Lang::set() — Method in class Lang
设置配置【语言】 支持批量设置 /a.b.c方式设置
Lock::setExpire() — Method in class Lock
设置锁的过期时间
Base::setExpire() — Method in class Base
设置锁的过期时间
Model::set() — Method in class Model
增加一条数据-快捷方法
Model::setMulti() — Method in class Model
增加多条数据-快捷方法
Route::setPathInfo() — Method in class Route
设置pathInfo信息
Route::setUrlParams() — Method in class Route
修改解析得到的请求信息 含应用名、控制器、操作
SecureClass in namespace Cml
安全处理类,封装了常用的安全过滤接口
Secure::stripslashes() — Method in class Secure
增强的stripslashes
Secure::stripTags() — Method in class Secure
增强的strip_tags
Secure::setToken() — Method in class Secure
类加载-设置全局TOKEN,防止CSRF攻击
ServiceClass in namespace Cml
系统默认的Service类
FastRoute::setUrlParams() — Method in class FastRoute
修改解析得到的请求信息 含应用名、控制器、操作
Route::setUrlParams() — Method in class Route
修改解析得到的请求信息 含应用名、控制器、操作
SessionClass in namespace Cml
Session保存位置处理类。封装了Session入库/Cache的逻辑处理 采用Mysql存储时需要建数据表,语句如下: CREATE TABLE cml_session ( id char(32) NOT NULL, value varchar(5000) NOT NULL, ctime int(11) unsigned NOT NULL, PRIMARY KEY(id) )ENGINE=MEMORY DEFAULT CHARSET=utf8;
ProcessManage::start() — Method in class ProcessManage
开始运行
ProcessManage::stop() — Method in class ProcessManage
终止后台进程
StaticResourceClass in namespace Cml\Tools
静态资源管理类
Acl::setEncryptKey() — Method in class Acl
设置加密用的混淆key Cookie::set本身有一重加密 这里再加一重
Acl::setTableName() — Method in class Acl
自定义表名
Acl::setLoginStatus() — Method in class Acl
保存当前登录用户的信息
Email::sendMail() — Method in class Email
发送邮件
Excel::setTitleRow() — Method in class Excel
添加标题行
Html::start() — Method in class Html
静态页面-开启ob_start(),打开缓冲区
Http::sendHttpStatus() — Method in class Http
HTTP Protocol defined status codes
Ip2Region::safeIp2long() — Method in class Ip2Region
safe self::safeIp2long function
Page::setConfig() — Method in class Page
配置参数
Page::show() — Method in class Page
输出分页
$PhpThreadProperty in class PhpThread
已完成的任务队列(查看处理结果)
Quenue::set() — Method in class Quenue
队列-设置值
SocketClass in namespace Cml\Vendor
Socket客户端扩展
StringProcessClass in namespace Cml\Vendor
字符串处理类,包含字符串截取、获取随机字符串等
StringProcess::strSimilar() — Method in class StringProcess
返回两个字符串的相似度
StringProcess::substrCn() — Method in class StringProcess
字符串截取,支持中文和其他编码
Tree::setConfig() — Method in class Tree
修改配置
Html::setHtmlEngineOptions() — Method in class Html
设定模板配置参数
Html::setLayout() — Method in class Html
正常情况布局文件直接通过displayWithLayout方法指定,会自动从主题目录/layout里寻找。但是一些特殊情况要单独设置布局。

T

Apc::truncate() — Method in class Apc
清洗已经存储的所有元素
File::truncate() — Method in class File
清空缓存
Memcache::truncate() — Method in class Memcache
清洗已经存储的所有元素
Redis::truncate() — Method in class Redis
清洗已经存储的所有元素
$BaseProperty in class Base
表前缀方便外部读取
Base::table() — Method in class Base
定义操作的表
Base::transaction() — Method in class Base
执行
MongoDB::truncate() — Method in class MongoDB
清空集合 这个操作太危险所以直接屏蔽了
Pdo::truncate() — Method in class Pdo
根据表名删除数据 这个操作太危险慎用。不过一般情况程序也没这个权限
Cache::truncate() — Method in class Cache
清洗已经存储的所有元素
Db::table() — Method in class Db
定义操作的表
Db::truncate() — Method in class Db
根据表名删除数据
TreeClass in namespace Cml\Vendor
无限级分类处理

U

Apc::update() — Method in class Apc
更新对象
File::update() — Method in class File
更新缓存 可以直接用set但是为了一致性操作所以做此兼容
Memcache::update() — Method in class Memcache
更新对象
Redis::update() — Method in class Redis
更新对象
Base::union() — Method in class Base
union联结
MongoDB::update() — Method in class MongoDB
根据key更新一条数据
MongoDB::union() — Method in class MongoDB
union联结 MongoDB不支持此命令
Pdo::update() — Method in class Pdo
根据key更新一条数据
Request::userAgent() — Method in class Request
获取用户标识
Response::url() — Method in class Response
URL组装 支持不同URL模式 eg: \Cml\Http\Response::url('Home/Blog/cate/id/1')
Cache::update() — Method in class Cache
更新对象
Db::update() — Method in class Db
根据key更新一条数据
Db::union() — Method in class Db
union联结
Lock::unlock() — Method in class Lock
解锁
Lock::unlock() — Method in class Lock
解锁
Base::unlock() — Method in class Base
解锁
File::unlock() — Method in class File
解锁
Model::updateByColumn() — Method in class Model
通过字段更新数据-快捷方法
Ftp::upload() — Method in class Ftp
FTP-文件上传
$PageProperty in class Page
分页的基础url地址默认获取当前操作
UploadFileClass in namespace Cml\Vendor
文件上传扩展类
UploadFile::upload() — Method in class UploadFile
上传所有文件

V

MongoDB::version() — Method in class MongoDB
获取mysql 版本
Pdo::version() — Method in class Pdo
获取mysql 版本
Db::version() — Method in class Db
获取数据库 版本
ViewClass in namespace Cml\Interfaces
视图驱动抽象接口
ValidateClass in namespace Cml\Vendor
数据验证类,封装了常用的数据验证接口
Validate::validate() — Method in class Validate
执行校验并返回布尔值
VerifyCodeClass in namespace Cml\Vendor
验证码扩展类 用于生成验证码
ViewClass in namespace Cml
视图渲染引擎 视图调度工厂

W

Command::write() — Method in class Command
格式化输出
Command::writeln() — Method in class Command
格式化输出
Output::write() — Method in class Output
输出内容
Output::writeln() — Method in class Output
输出内容并换行
Output::writeException() — Method in class Output
输出异常错误信息
Base::where() — Method in class Base
where条件组装 相等
Base::whereColumn() — Method in class Base
here条件组装 两个列相等
Base::whereNot() — Method in class Base
where条件组装 不等
Base::whereGt() — Method in class Base
where条件组装 大于
Base::whereLt() — Method in class Base
where条件组装 小于
Base::whereGte() — Method in class Base
where条件组装 大于等于
Base::whereLte() — Method in class Base
where条件组装 小于等于
Base::whereIn() — Method in class Base
where条件组装 in
Base::whereNotIn() — Method in class Base
where条件组装 not in
Base::whereRegExp() — Method in class Base
where条件组装 REGEXP
Base::whereLike() — Method in class Base
where条件组装 LIKE
Base::whereNotLike() — Method in class Base
where条件组装 LIKE
Base::whereBetween() — Method in class Base
where条件组装 BETWEEN
Base::whereNotBetween() — Method in class Base
where条件组装 NOT BETWEEN
Base::whereNull() — Method in class Base
where条件组装 IS NULL
Base::whereNotNull() — Method in class Base
where条件组装 IS NOT NULL
MongoDB::whereLike() — Method in class MongoDB
where条件组装 LIKE
MongoDB::whereNotLike() — Method in class MongoDB
where条件组装 LIKE
Db::where() — Method in class Db
where条件组装 相等
Db::whereNot() — Method in class Db
where条件组装 不等
Db::whereGt() — Method in class Db
where条件组装 大于
Db::whereLt() — Method in class Db
where条件组装 小于
Db::whereGte() — Method in class Db
where条件组装 大于等于
Db::whereLte() — Method in class Db
where条件组装 小于等于
Db::whereIn() — Method in class Db
where条件组装 in
Db::whereNotIn() — Method in class Db
where条件组装 not in
Db::whereRegExp() — Method in class Db
where条件组装 REGEXP
Db::whereLike() — Method in class Db
where条件组装 LIKE
Db::whereNotLike() — Method in class Db
where条件组装 LIKE
Db::whereBetween() — Method in class Db
where条件组装 BETWEEN
Db::whereNotBetween() — Method in class Db
where条件组装 NOT BETWEEN
Db::whereNull() — Method in class Db
where条件组装 IS NULL
Db::whereNotNull() — Method in class Db
where条件组装 IS NOT NULL
Logger::warning() — Method in class Logger
出现非错误性的异常。
Log::warning() — Method in class Log
添加warning类型的日志
Base::warning() — Method in class Base
出现非错误性的异常。
Model::where() — Method in class Model
where条件组装-相等
Model::whereNot() — Method in class Model
where条件组装-不等
Model::whereGt() — Method in class Model
where条件组装-大于
Model::whereLt() — Method in class Model
where条件组装-小于
Model::whereGte() — Method in class Model
where条件组装-大于等于
Model::whereLte() — Method in class Model
where条件组装-小于等于
Model::whereIn() — Method in class Model
where条件组装-IN
Model::whereNotIn() — Method in class Model
where条件组装-NOT IN
Model::whereLike() — Method in class Model
where条件组装-LIKE
Model::whereNotLike() — Method in class Model
where条件组装-NOT LIKE
Model::whereRegExp() — Method in class Model
where条件组装-RegExp
Model::whereBetween() — Method in class Model
where条件组装-BETWEEN
Model::whereNotBetween() — Method in class Model
where条件组装-NotBetween
Model::whereNull() — Method in class Model
where条件组装-IS NULL
Model::whereNotNull() — Method in class Model
where条件组装-IS NOT NULL
WhoopsClass in namespace Cml\Service
cmlerroror_exception服务Whoops实现
Session::write() — Method in class Session
session 写入
File::writeFile() — Method in class File
写文件
Socket::write() — Method in class Socket
向服务端写数据

X

XmlClass in namespace Cml\View
视图 Json渲染引擎

_

Apc::__construct() — Method in class Apc
使用的缓存配置 默认为使用default_cache配置的参数
Base::__get() — Method in class Base
Base::__set() — Method in class Base
File::__construct() — Method in class File
使用的缓存配置 默认为使用default_cache配置的参数
Memcache::__construct() — Method in class Memcache
使用的缓存配置 默认为使用default_cache配置的参数
Redis::__construct() — Method in class Redis
使用的缓存配置 默认为使用default_cache配置的参数
Redis::__destruct() — Method in class Redis
定义析构方法。不用判断长短连接,长链接执行close无效
Cml::__callStatic() — Method in class Cml
动态获取容器绑定的实例
Command::__construct() — Method in class Command
Command constructor.
Box::__construct() — Method in class Box
Box constructor.
Box::__toString() — Method in class Box
渲染文本并返回
Progress::__construct() — Method in class Progress
Progress constructor.
Console::__construct() — Method in class Console
Console constructor.
Colour::__callStatic() — Method in class Colour
静态方法
Format::__construct() — Method in class Format
构造方法
Controller::__destruct() — Method in class Controller
挂载插件钩子
Base::__get() — Method in class Base
魔术方法 自动获取相应db实例
Base::_and() — Method in class Base
增加 and条件操作符
Base::_or() — Method in class Base
增加or条件操作符
Base::__destruct() — Method in class Base
析构函数
MongoDB::__construct() — Method in class MongoDB
数据库连接串
MongoDB::_and() — Method in class MongoDB
设置后面的where以and连接
MongoDB::_or() — Method in class MongoDB
设置后面的where以or连接
MongoDB::__get() — Method in class MongoDB
魔术方法 自动获取相应db实例
Pdo::__construct() — Method in class Pdo
数据库连接串
Cache::__construct() — Method in class Cache
使用的缓存配置 默认为使用default_cache配置的参数
Console::__construct() — Method in class Console
构造函数
Db::__construct() — Method in class Db
Db constructor.
Db::_and() — Method in class Db
增加 and条件操作符
Db::_or() — Method in class Db
增加or条件操作符
Db::__destruct() — Method in class Db
析构函数
Base::__construct() — Method in class Base
Base::__destruct() — Method in class Base
定义析构函数 自动释放获得的锁
File::__destruct() — Method in class File
定义析构函数 自动释放获得的锁
File::__construct() — Method in class File
构造方法
Model::__call() — Method in class Model
当访问model中不存在的方法时直接调用$this->db()的相关方法
Model::__callStatic() — Method in class Model
当访问model中不存在的方法时直接调用相关model中的db()的相关方法
Queue::__callStatic() — Method in class Queue
访问Cml::getContainer()->make('cml_queue')中其余方法
Redis::__construct() — Method in class Redis
Redis队列驱动
Route::__callStatic() — Method in class Route
访问Cml::getContainer()->make('cml_route')中其余方法
Email::__construct() — Method in class Email
Email constructor.
Ip2Region::__construct() — Method in class Ip2Region
construct method
Ip2Region::__destruct() — Method in class Ip2Region
destruct method, resource destroy
Page::__construct() — Method in class Page
构造函数
PhpThread::__construct() — Method in class PhpThread
构造函数
Socket::__construct() — Method in class Socket
构造函数
Socket::__destruct() — Method in class Socket
析构函数
UploadFile::__get() — Method in class UploadFile
魔术方法快速获取配置
UploadFile::__set() — Method in class UploadFile
魔术方法,快速配置参数
UploadFile::__isset() — Method in class UploadFile
UploadFile::__construct() — Method in class UploadFile
构造方法
Validate::__construct() — Method in class Validate
初始化要检验的参数
Html::__construct() — Method in class Html
构造方法
dBug::__construct() — Method in class dBug
构造方法