文件注释规范调整

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;
class Crypt {
class Crypt {
/**
* 加密字符串
* @access static

View File

@@ -8,10 +8,9 @@
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
// | ImageGd.class.php 2013-03-05
// +----------------------------------------------------------------------
namespace Org\Image\Driver;
class Gd{
/**
* 图像资源对象

View File

@@ -8,9 +8,9 @@
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
// | GIF.class.php 2013-03-09
// +----------------------------------------------------------------------
namespace Org\Image\Driver;
class Gif{
/**
* GIF帧列表

View File

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

View File

@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace Org;
// oauth登录接口
// <code>
// Oauth::connect('qq',['app_key'=>'','app_secret'=>'','callback'=>'','authorize'=>'']); // 链接QQ登录

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Baidu extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Diandian extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Douban extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Github extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Google extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Kaixin extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Msn extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Qq extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Renren extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Sina extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Sohu extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class T163 extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Taobao extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class Tencent extends Driver{
/**
* 获取requestCode的api接口

View File

@@ -11,6 +11,7 @@
namespace Org\Oauth\Driver;
use Org\Oauth\Driver;
class X360 extends Driver{
/**
* 获取requestCode的api接口

View File

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

View File

@@ -11,9 +11,7 @@
# <http://daringfireball.net/projects/markdown/>
#
/**
* 应用到ThinkPHP中因而修改为ThinkPHP规范的命名空间
*/
# 应用到ThinkPHP中因而修改为ThinkPHP规范的命名空间
# namespace Michelf;
namespace Org\Parser\Driver;

View File

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

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

View File

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

View File

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