文件注释规范调整

This commit is contained in:
麦当苗儿
2013-04-15 10:48:09 +08:00
parent 440e65004d
commit 2a26762cf6
77 changed files with 114 additions and 46 deletions

View File

@@ -10,8 +10,8 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Org; namespace Org;
class Crypt {
class Crypt {
/** /**
* 加密字符串 * 加密字符串
* @access static * @access static

View File

@@ -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{
/** /**
* 图像资源对象 * 图像资源对象

View File

@@ -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帧列表

View File

@@ -10,6 +10,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Org\Image\Driver; namespace Org\Image\Driver;
class Imagick{ class Imagick{
/** /**
* 图像资源对象 * 图像资源对象

View File

@@ -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登录

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -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接口

View File

@@ -10,6 +10,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Org; namespace Org;
// 内容解析类 // 内容解析类
class Parser { class Parser {

View File

@@ -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;

View File

@@ -10,6 +10,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Org; namespace Org;
class Upload { class Upload {
protected $config = [ protected $config = [
'max_size' => -1, // 上传文件的最大值 'max_size' => -1, // 上传文件的最大值

View File

@@ -8,7 +8,6 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// $Id$
namespace Think; namespace Think;

View File

@@ -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 = [];

View File

@@ -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

View File

@@ -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

View File

@@ -8,7 +8,9 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Think; namespace Think;
class Cache { class Cache {
/** /**

View File

@@ -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 (

View File

@@ -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>

View File

@@ -8,6 +8,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Think\Cache\Driver; namespace Think\Cache\Driver;
/** /**

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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_'; // 参数作用域

View File

@@ -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)) {

View File

@@ -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)) {

View File

@@ -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;

View File

@@ -10,8 +10,8 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Think\Controller; namespace Think\Controller;
abstract class Phprpc {
abstract class Phprpc {
/** /**
* PHPRpc控制器架构函数 * PHPRpc控制器架构函数
* @access public * @access public

View File

@@ -10,6 +10,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Think\Controller; namespace Think\Controller;
abstract class Rest { abstract class Rest {
protected $_method = ''; // 当前请求类型 protected $_method = ''; // 当前请求类型

View File

@@ -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 = [

View File

@@ -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) {
// 锁定 // 锁定

View File

@@ -10,6 +10,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
namespace Think; namespace Think;
/** /**
* ThinkPHP 数据库中间层实现类 * ThinkPHP 数据库中间层实现类
*/ */

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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 = [];

View File

@@ -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

View File

@@ -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 {
} }

View File

@@ -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 = [

View File

@@ -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;

View File

@@ -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_'; // 作用域

View File

@@ -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'];

View File

@@ -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 {

View File

@@ -8,7 +8,6 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// $Id$
namespace Think; namespace Think;

View File

@@ -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 {
// 当前数据库操作对象 // 当前数据库操作对象

View File

@@ -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 = [

View File

@@ -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 = [];

View File

@@ -8,7 +8,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// $Id$
namespace Think; namespace Think;
class Session { class Session {

View File

@@ -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 = [];

View File

@@ -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){

View File

@@ -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

View File

@@ -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

View File

@@ -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=''){

View File

@@ -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 = []; // 自动验证定义

View File

@@ -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 = []; // 模板变量

View File

@@ -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=[]){

View File

@@ -8,7 +8,6 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// $Id$
// 惯例配置文件 // 惯例配置文件
return [ return [

View File

@@ -8,9 +8,9 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// $Id$
namespace Think; namespace Think;
//-------------------------- //--------------------------
// ThinkPHP 引导文件 // ThinkPHP 引导文件
//-------------------------- //--------------------------