mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修正 命名空间大小写
修正 扩展控制器目录位置
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
class Auto {
|
class Auto {
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Think\Controller;
|
|
||||||
abstract class Amf {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* PHPRpc控制器架构函数
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function __construct() {
|
|
||||||
//导入类库
|
|
||||||
Think\Loader::import('Vendor.Zend.Amf.Server');
|
|
||||||
//实例化AMF
|
|
||||||
$server = new \Zend_Amf_Server();
|
|
||||||
$server -> setClass($this);
|
|
||||||
echo $server -> handle();
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
<?php
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Think\Controller;
|
|
||||||
|
|
||||||
abstract class Phprpc {
|
|
||||||
/**
|
|
||||||
* PHPRpc控制器架构函数
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function __construct() {
|
|
||||||
//导入类库
|
|
||||||
Think\Loader::import('Vendor.phpRPC.phprpc_server');
|
|
||||||
//实例化phprpc
|
|
||||||
$server = new \PHPRPC_Server();
|
|
||||||
$server->add($this);
|
|
||||||
if(APP_DEBUG) {
|
|
||||||
$server->setDebugMode(true);
|
|
||||||
}
|
|
||||||
$server->setEnableGZIP(true);
|
|
||||||
$server->start();
|
|
||||||
//C('PHPRPC_COMMENT',$server->comment());
|
|
||||||
echo $server->comment();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,215 +0,0 @@
|
|||||||
<?php
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
|
||||||
// +----------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Think\Controller;
|
|
||||||
|
|
||||||
abstract class Rest {
|
|
||||||
|
|
||||||
protected $_method = ''; // 当前请求类型
|
|
||||||
protected $_type = ''; // 当前资源类型
|
|
||||||
// 输出类型
|
|
||||||
protected $restMethodList = 'get|post|put|delete';
|
|
||||||
protected $restDefaultMethod = 'get';
|
|
||||||
protected $restTypeList = 'html|xml|json|rss';
|
|
||||||
protected $restDefaultType = 'html';
|
|
||||||
protected $restOutputType = [ // REST允许输出的资源类型列表
|
|
||||||
'xml' => 'application/xml',
|
|
||||||
'json' => 'application/json',
|
|
||||||
'html' => 'text/html',
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 架构函数 取得模板对象实例
|
|
||||||
* @access public
|
|
||||||
*/
|
|
||||||
public function __construct() {
|
|
||||||
// 资源类型检测
|
|
||||||
if(''==__EXT__) { // 自动检测资源类型
|
|
||||||
$this->_type = $this->getAcceptType();
|
|
||||||
}elseif(!preg_match('/\('.$this->restTypeList.')$/i',__EXT__)) {
|
|
||||||
// 资源类型非法 则用默认资源类型访问
|
|
||||||
$this->_type = $this->restDefaultType;
|
|
||||||
}else{
|
|
||||||
$this->_type = __EXT__;
|
|
||||||
}
|
|
||||||
// 请求方式检测
|
|
||||||
$method = strtolower($_SERVER['REQUEST_METHOD']);
|
|
||||||
if(false === stripos($this->restMethodList,$method)) {
|
|
||||||
// 请求方式非法 则用默认请求方法
|
|
||||||
$method = $this->restDefaultMethod;
|
|
||||||
}
|
|
||||||
$this->_method = $method;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* REST 调用
|
|
||||||
* @access public
|
|
||||||
* @param string $method 方法名
|
|
||||||
* @param array $args 参数
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function _empty($method,$args) {
|
|
||||||
if(method_exists($this,$method.'_'.$this->_method.'_'.$this->_type)) { // RESTFul方法支持
|
|
||||||
$fun = $method.'_'.$this->_method.'_'.$this->_type;
|
|
||||||
}elseif($this->_method == $this->restDefaultMethod && method_exists($this,$method.'_'.$this->_type) ){
|
|
||||||
$fun = $method.'_'.$this->_type;
|
|
||||||
}elseif($this->_type == $this->restDefaultType && method_exists($this,$method.'_'.$this->_method) ){
|
|
||||||
$fun = $method.'_'.$this->_method;
|
|
||||||
}
|
|
||||||
if(isset($fun)) {
|
|
||||||
$this->$fun();
|
|
||||||
}else{
|
|
||||||
// 抛出异常
|
|
||||||
E(L('_ERROR_ACTION_:').ACTION_NAME);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置页面输出的CONTENT_TYPE和编码
|
|
||||||
* @access public
|
|
||||||
* @param string $type content_type 类型对应的扩展名
|
|
||||||
* @param string $charset 页面输出编码
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function setContentType($type, $charset='utf-8'){
|
|
||||||
if(headers_sent()) return;
|
|
||||||
$type = strtolower($type);
|
|
||||||
if(isset($this->restOutputType[$type])) //过滤content_type
|
|
||||||
header('Content-Type: '.$this->restOutputType[$type].'; charset='.$charset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 输出返回数据
|
|
||||||
* @access protected
|
|
||||||
* @param mixed $data 要返回的数据
|
|
||||||
* @param String $type 返回类型 JSON XML
|
|
||||||
* @param integer $code HTTP状态
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
protected function response($data,$type='',$code=200) {
|
|
||||||
$this->sendHttpStatus($code);
|
|
||||||
exit($this->encodeData($data,strtolower($type)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 编码数据
|
|
||||||
* @access protected
|
|
||||||
* @param mixed $data 要返回的数据
|
|
||||||
* @param String $type 返回类型 JSON XML
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
protected function encodeData($data,$type='') {
|
|
||||||
if(empty($data)) return '';
|
|
||||||
if('json' == $type) {
|
|
||||||
// 返回JSON数据格式到客户端 包含状态信息
|
|
||||||
$data = json_encode($data);
|
|
||||||
}elseif('xml' == $type){
|
|
||||||
// 返回xml格式数据
|
|
||||||
$data = xml_encode($data);
|
|
||||||
}elseif('php'==$type){
|
|
||||||
$data = serialize($data);
|
|
||||||
}// 默认直接输出
|
|
||||||
$this->setContentType($type);
|
|
||||||
header('Content-Length: ' . strlen($data));
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 发送Http状态信息
|
|
||||||
protected function sendHttpStatus($status) {
|
|
||||||
static $_status = [
|
|
||||||
// Informational 1xx
|
|
||||||
100 => 'Continue',
|
|
||||||
101 => 'Switching Protocols',
|
|
||||||
// Success 2xx
|
|
||||||
200 => 'OK',
|
|
||||||
201 => 'Created',
|
|
||||||
202 => 'Accepted',
|
|
||||||
203 => 'Non-Authoritative Information',
|
|
||||||
204 => 'No Content',
|
|
||||||
205 => 'Reset Content',
|
|
||||||
206 => 'Partial Content',
|
|
||||||
// Redirection 3xx
|
|
||||||
300 => 'Multiple Choices',
|
|
||||||
301 => 'Moved Permanently',
|
|
||||||
302 => 'Moved Temporarily ', // 1.1
|
|
||||||
303 => 'See Other',
|
|
||||||
304 => 'Not Modified',
|
|
||||||
305 => 'Use Proxy',
|
|
||||||
// 306 is deprecated but reserved
|
|
||||||
307 => 'Temporary Redirect',
|
|
||||||
// Client Error 4xx
|
|
||||||
400 => 'Bad Request',
|
|
||||||
401 => 'Unauthorized',
|
|
||||||
402 => 'Payment Required',
|
|
||||||
403 => 'Forbidden',
|
|
||||||
404 => 'Not Found',
|
|
||||||
405 => 'Method Not Allowed',
|
|
||||||
406 => 'Not Acceptable',
|
|
||||||
407 => 'Proxy Authentication Required',
|
|
||||||
408 => 'Request Timeout',
|
|
||||||
409 => 'Conflict',
|
|
||||||
410 => 'Gone',
|
|
||||||
411 => 'Length Required',
|
|
||||||
412 => 'Precondition Failed',
|
|
||||||
413 => 'Request Entity Too Large',
|
|
||||||
414 => 'Request-URI Too Long',
|
|
||||||
415 => 'Unsupported Media Type',
|
|
||||||
416 => 'Requested Range Not Satisfiable',
|
|
||||||
417 => 'Expectation Failed',
|
|
||||||
// Server Error 5xx
|
|
||||||
500 => 'Internal Server Error',
|
|
||||||
501 => 'Not Implemented',
|
|
||||||
502 => 'Bad Gateway',
|
|
||||||
503 => 'Service Unavailable',
|
|
||||||
504 => 'Gateway Timeout',
|
|
||||||
505 => 'HTTP Version Not Supported',
|
|
||||||
509 => 'Bandwidth Limit Exceeded'
|
|
||||||
];
|
|
||||||
if(isset($_status[$code])) {
|
|
||||||
header('HTTP/1.1 '.$code.' '.$_status[$code]);
|
|
||||||
// 确保FastCGI模式下正常
|
|
||||||
header('Status:'.$code.' '.$_status[$code]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取当前请求的Accept头信息
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
protected function getAcceptType(){
|
|
||||||
$type = [
|
|
||||||
'html' => 'text/html,application/xhtml+xml,*/*',
|
|
||||||
'xml' => 'application/xml,text/xml,application/x-xml',
|
|
||||||
'json' => 'application/json,text/x-json,application/jsonrequest,text/json',
|
|
||||||
'js' => 'text/javascript,application/javascript,application/x-javascript',
|
|
||||||
'css' => 'text/css',
|
|
||||||
'rss' => 'application/rss+xml',
|
|
||||||
'yaml' => 'application/x-yaml,text/yaml',
|
|
||||||
'atom' => 'application/atom+xml',
|
|
||||||
'pdf' => 'application/pdf',
|
|
||||||
'text' => 'text/plain',
|
|
||||||
'png' => 'image/png',
|
|
||||||
'jpg' => 'image/jpg,image/jpeg,image/pjpeg',
|
|
||||||
'gif' => 'image/gif',
|
|
||||||
'csv' => 'text/csv'
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach($type as $key=>$val){
|
|
||||||
$array = explode(',',$val);
|
|
||||||
foreach($array as $k=>$v){
|
|
||||||
if(stristr($_SERVER['HTTP_ACCEPT'], $v)) {
|
|
||||||
return $key;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
class Crypt {
|
class Crypt {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
class Filter {
|
class Filter {
|
||||||
//html标签设置
|
//html标签设置
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
/* 缩略图相关常量定义 */
|
/* 缩略图相关常量定义 */
|
||||||
define('THINKIMAGE_THUMB_SCALING', 1); //常量,标识缩略图等比例缩放类型
|
define('THINKIMAGE_THUMB_SCALING', 1); //常量,标识缩略图等比例缩放类型
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Image\Driver;
|
namespace think\image\driver;
|
||||||
|
|
||||||
class Gd{
|
class Gd{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Image\Driver;
|
namespace think\image\driver;
|
||||||
|
|
||||||
class Gif{
|
class Gif{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Image\Driver;
|
namespace think\image\driver;
|
||||||
|
|
||||||
class Imagick{
|
class Imagick{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
// oauth登录接口
|
// oauth登录接口
|
||||||
// <code>
|
// <code>
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth;
|
namespace think\oauth;
|
||||||
|
|
||||||
abstract class Driver {
|
abstract class Driver {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Baidu extends Driver{
|
class Baidu extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 杨维杰 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 杨维杰 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Diandian extends Driver{
|
class Diandian extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Douban extends Driver{
|
class Douban extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Github extends Driver{
|
class Github extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Google extends Driver{
|
class Google extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Kaixin extends Driver{
|
class Kaixin extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Msn extends Driver{
|
class Msn extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Qq extends Driver{
|
class Qq extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Renren extends Driver{
|
class Renren extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Sina extends Driver{
|
class Sina extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Sohu extends Driver{
|
class Sohu extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class T163 extends Driver{
|
class T163 extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Taobao extends Driver{
|
class Taobao extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class Tencent extends Driver{
|
class Tencent extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Oauth\Driver;
|
namespace think\oauth\driver;
|
||||||
use Think\Oauth\Driver;
|
use think\oauth\driver;
|
||||||
|
|
||||||
class X360 extends Driver{
|
class X360 extends Driver{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Transform\Driver;
|
namespace think\transform\driver;
|
||||||
|
|
||||||
class Json{
|
class Json{
|
||||||
public function encode($data){
|
public function encode($data){
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Transform\Driver;
|
namespace think\transform\driver;
|
||||||
|
|
||||||
class Xml{
|
class Xml{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
class Upload {
|
class Upload {
|
||||||
protected $config = [
|
protected $config = [
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think;
|
namespace think;
|
||||||
|
|
||||||
class Validate {
|
class Validate {
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Behavior;
|
namespace think\behavior;
|
||||||
use Think\Config;
|
use think\config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:模板内容输出替换
|
* 系统行为扩展:模板内容输出替换
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Behavior;
|
namespace think\behavior;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:定位模板文件
|
* 系统行为扩展:定位模板文件
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace think\behavior;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:静态缓存读取
|
* 系统行为扩展:静态缓存读取
|
||||||
* @category Think
|
* @category Think
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
* @subpackage Behavior
|
* @subpackage Behavior
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
*/
|
*/
|
||||||
class ReadHtmlCacheBehavior {
|
class ReadHtmlCache {
|
||||||
protected $options = [
|
protected $options = [
|
||||||
'HTML_CACHE_ON' => false,
|
'HTML_CACHE_ON' => false,
|
||||||
'HTML_CACHE_TIME' => 60,
|
'HTML_CACHE_TIME' => 60,
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Behavior;
|
namespace think\behavior;
|
||||||
use Think\Config;
|
use think\Config;
|
||||||
use Think\Log;
|
use think\Log;
|
||||||
use Think\Debug;
|
use think\Debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:页面Trace显示输出
|
* 系统行为扩展:页面Trace显示输出
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
defined('THINK_PATH') or exit();
|
namespace think\behavior;
|
||||||
/**
|
/**
|
||||||
* 系统行为扩展:表单令牌生成
|
* 系统行为扩展:表单令牌生成
|
||||||
* @category Think
|
* @category Think
|
||||||
@@ -17,7 +17,7 @@ defined('THINK_PATH') or exit();
|
|||||||
* @subpackage Behavior
|
* @subpackage Behavior
|
||||||
* @author liu21st <liu21st@gmail.com>
|
* @author liu21st <liu21st@gmail.com>
|
||||||
*/
|
*/
|
||||||
class TokenBuildBehavior extends Behavior {
|
class TokenBuild extends Behavior {
|
||||||
// 行为参数定义
|
// 行为参数定义
|
||||||
protected $options = [
|
protected $options = [
|
||||||
'TOKEN_ON' => false, // 开启令牌验证
|
'TOKEN_ON' => false, // 开启令牌验证
|
||||||
|
|||||||
2
library/think/cache/driver/apc.php
vendored
2
library/think/cache/driver/apc.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apc缓存驱动
|
* Apc缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/db.php
vendored
2
library/think/cache/driver/db.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据库方式缓存驱动
|
* 数据库方式缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/eaccelerator.php
vendored
2
library/think/cache/driver/eaccelerator.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Eaccelerator缓存驱动
|
* Eaccelerator缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/file.php
vendored
2
library/think/cache/driver/file.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件类型缓存类
|
* 文件类型缓存类
|
||||||
|
|||||||
2
library/think/cache/driver/memcache.php
vendored
2
library/think/cache/driver/memcache.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Memcache缓存驱动
|
* Memcache缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/redis.php
vendored
2
library/think/cache/driver/redis.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redis缓存驱动
|
* Redis缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/secache.php
vendored
2
library/think/cache/driver/secache.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Secache缓存驱动
|
* Secache缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/simple.php
vendored
2
library/think/cache/driver/simple.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件类型缓存类
|
* 文件类型缓存类
|
||||||
|
|||||||
2
library/think/cache/driver/sqlite.php
vendored
2
library/think/cache/driver/sqlite.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sqlite缓存驱动
|
* Sqlite缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/wincache.php
vendored
2
library/think/cache/driver/wincache.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wincache缓存驱动
|
* Wincache缓存驱动
|
||||||
|
|||||||
2
library/think/cache/driver/xcache.php
vendored
2
library/think/cache/driver/xcache.php
vendored
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Cache\Driver;
|
namespace think\cache\driver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Xcache缓存驱动
|
* Xcache缓存驱动
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Config\Driver;
|
namespace think\config\driver;
|
||||||
|
|
||||||
class Ini {
|
class Ini {
|
||||||
public function parse($config){
|
public function parse($config){
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Config\Driver;
|
namespace think\config\driver;
|
||||||
|
|
||||||
class Xml {
|
class Xml {
|
||||||
public function parse($config){
|
public function parse($config){
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
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 {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mongo数据库驱动
|
* Mongo数据库驱动
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mysql数据库驱动
|
* mysql数据库驱动
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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数据库驱动
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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数据库驱动
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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数据库驱动
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | 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;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
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 {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Log\Driver;
|
namespace think\log\driver;
|
||||||
|
|
||||||
class File {
|
class File {
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,13 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Model;
|
namespace think\model;
|
||||||
use Traits\Think\Model\Extend,Traits\Think\Model\Query;
|
use traits\think\model\extend,
|
||||||
T('Think/Model/Extend');
|
traits\think\model\query;
|
||||||
T('Think/Model/Query');
|
|
||||||
class ExtendModel extends \Think\Model {
|
T('think/model/extend');
|
||||||
use Extend,Query;
|
T('think/model/query');
|
||||||
|
|
||||||
|
class ExtendModel extends \think\model {
|
||||||
|
use extend, query;
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,8 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace Think\Model;
|
namespace think\model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MongoModel模型类
|
* MongoModel模型类
|
||||||
* 实现了ODM和ActiveRecords模式
|
* 实现了ODM和ActiveRecords模式
|
||||||
|
|||||||
@@ -9,8 +9,9 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Model;
|
namespace think\model;
|
||||||
T('Think/Model/Relation');
|
|
||||||
class RelationModel extends \Think\Model {
|
T('think/model/relation');
|
||||||
use \Traits\Think\Model\Relation;
|
class RelationModel extends \think\model {
|
||||||
|
use \traits\think\model\relation;
|
||||||
}
|
}
|
||||||
@@ -9,8 +9,9 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Model;
|
namespace think\model;
|
||||||
T('Think/Model/View');
|
|
||||||
class ViewModel extends \Think\Model {
|
T('think/model/view');
|
||||||
use \Traits\Think\Model\View;
|
class ViewModel extends \think\model {
|
||||||
|
use \traits\think\model\view;
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
# 应用到ThinkPHP中,因而修改为ThinkPHP规范的命名空间
|
# 应用到ThinkPHP中,因而修改为ThinkPHP规范的命名空间
|
||||||
# namespace Michelf;
|
# namespace Michelf;
|
||||||
namespace Think\Parser\Driver;
|
namespace think\parser\driver;
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following two constants are deprecated: avoid using them, they'll
|
# The following two constants are deprecated: avoid using them, they'll
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
// | Ubb.php 2013-04-03
|
// | Ubb.php 2013-04-03
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Parser\Driver;
|
namespace think\parser\driver;
|
||||||
|
|
||||||
class Ubb{
|
class Ubb{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Session\Driver;
|
namespace think\session\driver;
|
||||||
use SessionHandler;
|
use SessionHandler;
|
||||||
|
|
||||||
class Driver extends SessionHandler {
|
class Driver extends SessionHandler {
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace Think\Storage\Driver;
|
namespace think\storage\driver;
|
||||||
use Think\Storage;
|
use think\storage;
|
||||||
|
|
||||||
// 本地文件写入存储类
|
// 本地文件写入存储类
|
||||||
class File extends Storage{
|
class File extends Storage{
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: luofei614 <weibo.com/luofei614>
|
// | Author: luofei614 <weibo.com/luofei614>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace Think\Storage\Driver;
|
namespace think\storage\driver;
|
||||||
use Think\Storage;
|
use think\storage;
|
||||||
|
|
||||||
// SAE环境文件写入存储类
|
// SAE环境文件写入存储类
|
||||||
class Sae extends Storage{
|
class Sae extends Storage{
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Template\Driver;
|
namespace think\template\driver;
|
||||||
use Think\Exception;
|
use think\exception;
|
||||||
|
|
||||||
class File {
|
class File {
|
||||||
// 写入编译缓存
|
// 写入编译缓存
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Template;
|
namespace think\template;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ThinkPHP标签库TagLib解析基类
|
* ThinkPHP标签库TagLib解析基类
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\Template\Taglib;
|
namespace think\template\taglib;
|
||||||
use Think\Template\Taglib;
|
use think\template\taglib;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CX标签库解析类
|
* CX标签库解析类
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Think\View\Driver;
|
namespace think\view\driver;
|
||||||
use Think\Template;
|
use think\template;
|
||||||
|
|
||||||
class Think {
|
class Think {
|
||||||
private $template = null;
|
private $template = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user