mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-10 00:22:48 +08:00
文件注释规范调整
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Org;
|
namespace Org;
|
||||||
class Crypt {
|
|
||||||
|
|
||||||
|
class Crypt {
|
||||||
/**
|
/**
|
||||||
* 加密字符串
|
* 加密字符串
|
||||||
* @access static
|
* @access static
|
||||||
|
|||||||
@@ -8,10 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | ImageGd.class.php 2013-03-05
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Org\Image\Driver;
|
namespace Org\Image\Driver;
|
||||||
|
|
||||||
class Gd{
|
class Gd{
|
||||||
/**
|
/**
|
||||||
* 图像资源对象
|
* 图像资源对象
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | GIF.class.php 2013-03-09
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
namespace Org\Image\Driver;
|
namespace Org\Image\Driver;
|
||||||
|
|
||||||
class Gif{
|
class Gif{
|
||||||
/**
|
/**
|
||||||
* GIF帧列表
|
* GIF帧列表
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Org\Image\Driver;
|
namespace Org\Image\Driver;
|
||||||
|
|
||||||
class Imagick{
|
class Imagick{
|
||||||
/**
|
/**
|
||||||
* 图像资源对象
|
* 图像资源对象
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Org;
|
namespace Org;
|
||||||
|
|
||||||
// oauth登录接口
|
// oauth登录接口
|
||||||
// <code>
|
// <code>
|
||||||
// Oauth::connect('qq',['app_key'=>'','app_secret'=>'','callback'=>'','authorize'=>'']); // 链接QQ登录
|
// Oauth::connect('qq',['app_key'=>'','app_secret'=>'','callback'=>'','authorize'=>'']); // 链接QQ登录
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Baidu extends Driver{
|
class Baidu extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Diandian extends Driver{
|
class Diandian extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Douban extends Driver{
|
class Douban extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Github extends Driver{
|
class Github extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Google extends Driver{
|
class Google extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Kaixin extends Driver{
|
class Kaixin extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Msn extends Driver{
|
class Msn extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Qq extends Driver{
|
class Qq extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Renren extends Driver{
|
class Renren extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Sina extends Driver{
|
class Sina extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Sohu extends Driver{
|
class Sohu extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class T163 extends Driver{
|
class T163 extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Taobao extends Driver{
|
class Taobao extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class Tencent extends Driver{
|
class Tencent extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Org\Oauth\Driver;
|
namespace Org\Oauth\Driver;
|
||||||
use Org\Oauth\Driver;
|
use Org\Oauth\Driver;
|
||||||
|
|
||||||
class X360 extends Driver{
|
class X360 extends Driver{
|
||||||
/**
|
/**
|
||||||
* 获取requestCode的api接口
|
* 获取requestCode的api接口
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Org;
|
namespace Org;
|
||||||
|
|
||||||
// 内容解析类
|
// 内容解析类
|
||||||
class Parser {
|
class Parser {
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,7 @@
|
|||||||
# <http://daringfireball.net/projects/markdown/>
|
# <http://daringfireball.net/projects/markdown/>
|
||||||
#
|
#
|
||||||
|
|
||||||
/**
|
# 应用到ThinkPHP中,因而修改为ThinkPHP规范的命名空间
|
||||||
* 应用到ThinkPHP中,因而修改为ThinkPHP规范的命名空间
|
|
||||||
*/
|
|
||||||
# namespace Michelf;
|
# namespace Michelf;
|
||||||
namespace Org\Parser\Driver;
|
namespace Org\Parser\Driver;
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Org;
|
namespace Org;
|
||||||
|
|
||||||
class Upload {
|
class Upload {
|
||||||
protected $config = [
|
protected $config = [
|
||||||
'max_size' => -1, // 上传文件的最大值
|
'max_size' => -1, // 上传文件的最大值
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Auto {
|
class Auto {
|
||||||
|
|
||||||
protected $auto = [];
|
protected $auto = [];
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Behavior;
|
namespace Think\Behavior;
|
||||||
use Think\Config;
|
use Think\Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:模板内容输出替换
|
* 系统行为扩展:模板内容输出替换
|
||||||
* @category Think
|
* @category Think
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace Think\Behavior;
|
|||||||
use Think\Config;
|
use Think\Config;
|
||||||
use Think\Log;
|
use Think\Log;
|
||||||
use Think\Debug;
|
use Think\Debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:页面Trace显示输出
|
* 系统行为扩展:页面Trace显示输出
|
||||||
* @category Think
|
* @category Think
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Cache {
|
class Cache {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据库方式缓存驱动
|
* 数据库方式缓存驱动
|
||||||
* CREATE TABLE think_cache (
|
* CREATE TABLE think_cache (
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Eaccelerator缓存驱动
|
* Eaccelerator缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Memcache缓存驱动
|
* Memcache缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redis缓存驱动
|
* Redis缓存驱动
|
||||||
* 要求安装phpredis扩展:https://github.com/nicolasff/phpredis
|
* 要求安装phpredis扩展:https://github.com/nicolasff/phpredis
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Secache缓存驱动
|
* Secache缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件类型缓存类
|
* 文件类型缓存类
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sqlite缓存驱动
|
* Sqlite缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wincache缓存驱动
|
* Wincache缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace Think\Cache\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Xcache缓存驱动
|
* Xcache缓存驱动
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Config {
|
class Config {
|
||||||
static private $_config = []; // 配置参数
|
static private $_config = []; // 配置参数
|
||||||
static private $_range = '_sys_'; // 参数作用域
|
static private $_range = '_sys_'; // 参数作用域
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think\Config\Driver;
|
namespace Think\Config\Driver;
|
||||||
|
|
||||||
class Ini {
|
class Ini {
|
||||||
public function parse($config){
|
public function parse($config){
|
||||||
if(is_file($config)) {
|
if(is_file($config)) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think\Config\Driver;
|
namespace Think\Config\Driver;
|
||||||
|
|
||||||
class Xml {
|
class Xml {
|
||||||
public function parse($config){
|
public function parse($config){
|
||||||
if(is_file($config)) {
|
if(is_file($config)) {
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
// 视图类实例
|
// 视图类实例
|
||||||
protected $view = null;
|
protected $view = null;
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Controller;
|
namespace Think\Controller;
|
||||||
abstract class Phprpc {
|
|
||||||
|
|
||||||
|
abstract class Phprpc {
|
||||||
/**
|
/**
|
||||||
* PHPRpc控制器架构函数
|
* PHPRpc控制器架构函数
|
||||||
* @access public
|
* @access public
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Controller;
|
namespace Think\Controller;
|
||||||
|
|
||||||
abstract class Rest {
|
abstract class Rest {
|
||||||
|
|
||||||
protected $_method = ''; // 当前请求类型
|
protected $_method = ''; // 当前请求类型
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Cookie {
|
class Cookie {
|
||||||
|
|
||||||
static protected $config = [
|
static protected $config = [
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Create {
|
class Create {
|
||||||
static public function build($build) {
|
static public function build($build) {
|
||||||
// 锁定
|
// 锁定
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ThinkPHP 数据库中间层实现类
|
* ThinkPHP 数据库中间层实现类
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,12 +8,13 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\Db;
|
namespace Think\Db;
|
||||||
use Think\Config;
|
use Think\Config;
|
||||||
use Think\Debug;
|
use Think\Debug;
|
||||||
use Think\Log;
|
use Think\Log;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
abstract class Driver {
|
abstract class Driver {
|
||||||
// PDO操作实例
|
// PDO操作实例
|
||||||
protected $PDOStatement = null;
|
protected $PDOStatement = null;
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Db\Driver;
|
namespace Think\Db\Driver;
|
||||||
use Think\Db\Driver;
|
use Think\Db\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PDO数据库驱动
|
* PDO数据库驱动
|
||||||
* @category Extend
|
* @category Extend
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Db\Driver;
|
namespace Think\Db\Driver;
|
||||||
use Think\Db\Driver;
|
use Think\Db\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Oracle数据库驱动
|
* Oracle数据库驱动
|
||||||
* @category Extend
|
* @category Extend
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Db\Driver;
|
namespace Think\Db\Driver;
|
||||||
use Think\Db\Driver;
|
use Think\Db\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pgsql数据库驱动
|
* Pgsql数据库驱动
|
||||||
* @category Extend
|
* @category Extend
|
||||||
|
|||||||
@@ -8,8 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Db\Driver;
|
namespace Think\Db\Driver;
|
||||||
use Think\Db\Driver;
|
use Think\Db\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sqlite数据库驱动
|
* Sqlite数据库驱动
|
||||||
* @category Extend
|
* @category Extend
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Think\Db\Driver;
|
namespace Think\Db\Driver;
|
||||||
use Think\Db\Driver;
|
use Think\Db\Driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sqlsrv数据库驱动
|
* Sqlsrv数据库驱动
|
||||||
* @category Extend
|
* @category Extend
|
||||||
|
|||||||
@@ -8,12 +8,13 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\Db;
|
namespace Think\Db;
|
||||||
use Think\Config;
|
use Think\Config;
|
||||||
use Think\Debug;
|
use Think\Debug;
|
||||||
use Think\Log;
|
use Think\Log;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
class Lite {
|
class Lite {
|
||||||
// PDO操作实例
|
// PDO操作实例
|
||||||
protected $PDOStatement = null;
|
protected $PDOStatement = null;
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Debug {
|
class Debug {
|
||||||
|
|
||||||
static protected $_info = [];
|
static protected $_info = [];
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
|
||||||
class Error {
|
|
||||||
|
|
||||||
|
namespace Think;
|
||||||
|
|
||||||
|
class Error {
|
||||||
/**
|
/**
|
||||||
* 自定义异常处理
|
* 自定义异常处理
|
||||||
* @access public
|
* @access public
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Exception extends \Exception {
|
class Exception extends \Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Filter {
|
class Filter {
|
||||||
//html标签设置
|
//html标签设置
|
||||||
static public $htmlTags = [
|
static public $htmlTags = [
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Input {
|
class Input {
|
||||||
// 全局过滤规则
|
// 全局过滤规则
|
||||||
static $filter = NULL;
|
static $filter = NULL;
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Lang {
|
class Lang {
|
||||||
static private $_lang = []; // 语言参数
|
static private $_lang = []; // 语言参数
|
||||||
static private $_range = '_sys_'; // 作用域
|
static private $_range = '_sys_'; // 作用域
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
class Log {
|
|
||||||
|
|
||||||
|
class Log {
|
||||||
// 日志信息
|
// 日志信息
|
||||||
static protected $log = [];
|
static protected $log = [];
|
||||||
static protected $level = ['ERR','NOTIC','DEBUG','SQL','INFO'];
|
static protected $level = ['ERR','NOTIC','DEBUG','SQL','INFO'];
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\Log\Driver;
|
namespace Think\Log\Driver;
|
||||||
|
|
||||||
class File {
|
class File {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think\Model;
|
namespace Think\Model;
|
||||||
|
|
||||||
class Lite {
|
class Lite {
|
||||||
|
|
||||||
// 当前数据库操作对象
|
// 当前数据库操作对象
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Route {
|
class Route {
|
||||||
// 路由规则
|
// 路由规则
|
||||||
static private $rules = [
|
static private $rules = [
|
||||||
|
|||||||
@@ -8,9 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\Session\Driver;
|
namespace Think\Session\Driver;
|
||||||
use SessionHandler;
|
use SessionHandler;
|
||||||
|
|
||||||
class Driver extends SessionHandler {
|
class Driver extends SessionHandler {
|
||||||
protected $config = [];
|
protected $config = [];
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Session {
|
class Session {
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Tag {
|
class Tag {
|
||||||
|
|
||||||
static private $tags = [];
|
static private $tags = [];
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think\Template\Driver;
|
namespace Think\Template\Driver;
|
||||||
|
|
||||||
class File {
|
class File {
|
||||||
// 写入编译缓存
|
// 写入编译缓存
|
||||||
public function write($cacheFile,$content){
|
public function write($cacheFile,$content){
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\Template;
|
namespace Think\Template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ThinkPHP标签库TagLib解析基类
|
* ThinkPHP标签库TagLib解析基类
|
||||||
* @category Think
|
* @category Think
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace Think\Template\TagLib;
|
namespace Think\Template\TagLib;
|
||||||
use Think\Template\TagLib;
|
use Think\Template\TagLib;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CX标签库解析类
|
* CX标签库解析类
|
||||||
* @category Think
|
* @category Think
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Url {
|
class Url {
|
||||||
|
|
||||||
static public function param($num,$default=''){
|
static public function param($num,$default=''){
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
class Validate {
|
class Validate {
|
||||||
|
|
||||||
protected $validate = []; // 自动验证定义
|
protected $validate = []; // 自动验证定义
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think;
|
|
||||||
class View {
|
|
||||||
|
|
||||||
|
namespace Think;
|
||||||
|
|
||||||
|
class View {
|
||||||
protected $engine = null; // 模板引擎实例
|
protected $engine = null; // 模板引擎实例
|
||||||
protected $theme = ''; // 模板主题名称
|
protected $theme = ''; // 模板主题名称
|
||||||
protected $data = []; // 模板变量
|
protected $data = []; // 模板变量
|
||||||
|
|||||||
@@ -8,9 +8,10 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
namespace Think\View\Driver;
|
namespace Think\View\Driver;
|
||||||
use Think\Template;
|
use Think\Template;
|
||||||
|
|
||||||
class Think {
|
class Think {
|
||||||
private $template = null;
|
private $template = null;
|
||||||
public function __construct($config=[]){
|
public function __construct($config=[]){
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
// 惯例配置文件
|
// 惯例配置文件
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// $Id$
|
|
||||||
|
|
||||||
namespace Think;
|
namespace Think;
|
||||||
|
|
||||||
//--------------------------
|
//--------------------------
|
||||||
// ThinkPHP 引导文件
|
// ThinkPHP 引导文件
|
||||||
//--------------------------
|
//--------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user