在ECJia的开发中,最常用的类就两种,一种是“RC_”前缀的类,一种就是“ecjia_”前缀的类,下面我整理了一下一些常用的RC前缀类的说明和相应的位置。
//文件操作
'RC_File' => 'Royalcms\Component\Support\Facades\File',
//错误对象
'RC_Error' => 'Royalcms\Component\Support\Facades\Error',
//视图对象
'RC_View' => 'Royalcms\Component\Support\Facades\View',
//表单验证类
'RC_Validator' => 'Royalcms\Component\Support\Facades\Validator',
//控制器跳转
'RC_Redirect' => 'Royalcms\Component\Support\Facades\Redirect',
//控制器请求
'RC_Request' => 'Royalcms\Component\Support\Facades\Request',
//控制器响应
'RC_Response' => 'Royalcms\Component\Support\Facades\Response',
//Cookie设置方法
'RC_Cookie' => 'Royalcms\Component\Support\Facades\Cookie',
//语言包设置方法
'RC_Lang' => 'Royalcms\Component\Support\Facades\Lang',
//内容加密、解密对象
'RC_Crypt' => 'Royalcms\Component\Support\Facades\Crypt',
//日志打印
'RC_Log' => 'Royalcms\Component\Support\Facades\Log',
//日志打印
'RC_Logger' => 'Royalcms\Component\Support\Facades\Logger',
//配置对象
'RC_Config' => 'Royalcms\Component\Support\Facades\Config',
//Session会员管理
'RC_Session' => 'Royalcms\Component\Support\Facades\Session',
//数据库查询对象
'RC_DB' => 'Royalcms\Component\Support\Facades\DB',
//数据库创建对象
'RC_Schema' => 'Royalcms\Component\Support\Facades\Schema',
//队列对象
'RC_Queue' => 'Royalcms\Component\Support\Facades\Queue',
//查询分页对象
'RC_Paginator' => 'Royalcms\Component\Support\Facades\Paginator',
//事件对象
'RC_Event' => 'Royalcms\Component\Support\Facades\Event',
//变量参数对象
'RC_Variable' => 'Royalcms\Component\Support\Facades\Variable',
//上传存储对象
'RC_Storage' => 'Royalcms\Component\Storage\Facades\Storage',
'RC_Filesystem' => 'Royalcms\Component\Support\Facades\Storage',
//Hook对象
'RC_Hook' => 'Royalcms\Component\Support\Facades\Hook',
//应用包对象
'RC_Package' => 'Royalcms\Component\Support\Facades\Package',
//环境对象
'RC_ENV' => 'Royalcms\Component\Support\Facades\Environment',
//Hash对象
'RC_Hash' => 'Royalcms\Component\Support\Facades\Hash',
//Password对象
'RC_Password' => 'Royalcms\Component\Support\Facades\Password',
//Redis操作对象
'RC_Redis' => 'Royalcms\Component\Support\Facades\Redis',
//通知操作对象
'RC_Notification' => 'Royalcms\Component\Support\Facades\Notification',
//Debugbar对象
'RC_Debugbar' => 'Royalcms\Component\Debugbar\Facades\Debugbar',
//日志查看对象
'RC_LogViewer' => 'Royalcms\Component\LogViewer\Facades\LogViewer',
//邮件操作对象
'RC_Mail' => 'Royalcms\Component\Mail\Facades\Mail',
//计时器操作
'RC_Timer' => 'Royalcms\Component\Timer\Facades\Timer',
//other
//字符串操作
'RC_String' => 'Royalcms\Component\Support\Str',
//JSON操作
'RC_Json' => 'Royalcms\Component\Support\Json',
//默认控制器
'RC_Controller' => 'Royalcms\Component\Routing\Controller',
//IP工具对象
'RC_Ip' => 'Royalcms\Component\IpAddress\Ip',
//上传工具对象
'RC_Upload' => 'Royalcms\Component\Upload\Upload',
//时间工具对象
'RC_Time' => 'Royalcms\Component\DateTime\Time',
//旧数据模型对象
'RC_Model' => 'Royalcms\Component\Model\ModelManage',
//HTTP请求对象
'RC_Http' => 'Royalcms\Component\HttpRequest\HttpRequest',
//uuid生成对象
'RC_Uuid' => 'Royalcms\Component\Uuid\Uuid',
//新数据模型对象
'RC_Eloquent' => 'Royalcms\Component\Database\Eloquent\Model',
//新数据表填充对象
'RC_Seeder' => 'Royalcms\Component\Database\Seeder',
//内容格式化对象
'RC_Format' => 'Royalcms\Component\Support\Format',
// Foundation
'RC_Object' => 'Royalcms\Component\Foundation\RoyalcmsObject',
'RC_Array' => 'Royalcms\Component\Foundation\ArrayHelper',
'RC_Kses' => 'Royalcms\Component\Foundation\Kses',
'RC_Loader' => 'Royalcms\Component\Foundation\Loader',
'RC_Route' => 'Royalcms\Component\Foundation\Route',
'RC_Api' => 'Royalcms\Component\Foundation\Api',
'RC_App' => 'Royalcms\Component\Foundation\App',
'RC_Plugin' => 'Royalcms\Component\Foundation\Plugin',
'RC_Theme' => 'Royalcms\Component\Foundation\Theme',
'RC_Token' => 'Royalcms\Component\Foundation\Token',
'RC_Uri' => 'Royalcms\Component\Foundation\Uri',
'RC_Validate' => 'Royalcms\Component\Foundation\Validate',
'RC_Widget' => 'Royalcms\Component\Foundation\Widget',
'RC_Xml' => 'Royalcms\Component\Foundation\Xml',
'RC_Cache' => 'Royalcms\Component\Foundation\Cache',
网友评论