文件注释规范调整

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

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

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Auto {
protected $auto = [];

View File

@@ -8,8 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Behavior;
use Think\Config;
/**
* 系统行为扩展:模板内容输出替换
* @category Think

View File

@@ -13,6 +13,7 @@ namespace Think\Behavior;
use Think\Config;
use Think\Log;
use Think\Debug;
/**
* 系统行为扩展页面Trace显示输出
* @category Think

View File

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

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* 数据库方式缓存驱动
* CREATE TABLE think_cache (

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Eaccelerator缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

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

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Memcache缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Redis缓存驱动
* 要求安装phpredis扩展https://github.com/nicolasff/phpredis

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Secache缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* 文件类型缓存类
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Sqlite缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Wincache缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Cache\Driver;
/**
* Xcache缓存驱动
* @author liu21st <liu21st@gmail.com>

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think;
class Config {
static private $_config = []; // 配置参数
static private $_range = '_sys_'; // 参数作用域

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Config\Driver;
class Ini {
public function parse($config){
if(is_file($config)) {

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Config\Driver;
class Xml {
public function parse($config){
if(is_file($config)) {

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Controller {
// 视图类实例
protected $view = null;

View File

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

View File

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

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Cookie {
static protected $config = [

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Create {
static public function build($build) {
// 锁定

View File

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

View File

@@ -8,12 +8,13 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Db;
use Think\Config;
use Think\Debug;
use Think\Log;
use PDO;
abstract class Driver {
// PDO操作实例
protected $PDOStatement = null;

View File

@@ -8,8 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
/**
* PDO数据库驱动
* @category Extend

View File

@@ -8,8 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
/**
* Oracle数据库驱动
* @category Extend

View File

@@ -8,8 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
/**
* Pgsql数据库驱动
* @category Extend

View File

@@ -8,8 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Db\Driver;
use Think\Db\Driver;
/**
* Sqlite数据库驱动
* @category Extend

View File

@@ -11,6 +11,7 @@
namespace Think\Db\Driver;
use Think\Db\Driver;
/**
* Sqlsrv数据库驱动
* @category Extend

View File

@@ -8,12 +8,13 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Db;
use Think\Config;
use Think\Debug;
use Think\Log;
use PDO;
class Lite {
// PDO操作实例
protected $PDOStatement = null;

View File

@@ -8,10 +8,11 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Debug {
namespace Think;
class Debug {
static protected $_info = [];
static protected $_mem = [];

View File

@@ -8,10 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Error {
namespace Think;
class Error {
/**
* 自定义异常处理
* @access public

View File

@@ -8,7 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Exception extends \Exception {
}

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Filter {
//html标签设置
static public $htmlTags = [

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Input {
// 全局过滤规则
static $filter = NULL;

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Lang {
static private $_lang = []; // 语言参数
static private $_range = '_sys_'; // 作用域

View File

@@ -10,8 +10,8 @@
// +----------------------------------------------------------------------
namespace Think;
class Log {
class Log {
// 日志信息
static protected $log = [];
static protected $level = ['ERR','NOTIC','DEBUG','SQL','INFO'];

View File

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

View File

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

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Model;
class Lite {
// 当前数据库操作对象

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Route {
// 路由规则
static private $rules = [

View File

@@ -8,9 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Session\Driver;
use SessionHandler;
class Driver extends SessionHandler {
protected $config = [];

View File

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

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Tag {
static private $tags = [];

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Template\Driver;
class File {
// 写入编译缓存
public function write($cacheFile,$content){

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\Template;
/**
* ThinkPHP标签库TagLib解析基类
* @category Think

View File

@@ -11,6 +11,7 @@
namespace Think\Template\TagLib;
use Think\Template\TagLib;
/**
* CX标签库解析类
* @category Think

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Url {
static public function param($num,$default=''){

View File

@@ -8,8 +8,9 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class Validate {
protected $validate = []; // 自动验证定义

View File

@@ -8,10 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think;
class View {
namespace Think;
class View {
protected $engine = null; // 模板引擎实例
protected $theme = ''; // 模板主题名称
protected $data = []; // 模板变量

View File

@@ -8,9 +8,10 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
namespace Think\View\Driver;
use Think\Template;
class Think {
private $template = null;
public function __construct($config=[]){