PHP Class Ts, thinksns

Author: Seven Du ([email protected])
Show file Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$_classLoader 储存Composer自动加载类的对象
$_files array 文件列表
$_root string 框架根
$capsule Illuminate\Database\Capsule\Manager 储存数据库管理链接

Public Methods

Method Description
classLoader ( ) : new 取得Composer的ClassLoader对象
getCapsule ( ) : Illuminate\Database\Capsule\Manager 取得 Illuminate\Database\Capsule\Manager
getRootPath ( ) : string 获取框架根目录
import ( string $name, string $ext = '.php' ) : boolean 文件加载类
run ( Composer\Autoload\ClassLoader $classLoader ) 入口文件

Protected Methods

Method Description
init ( ) 初始化

Method Details

classLoader() public static method

取得Composer的ClassLoader对象
Author: Seven Du ([email protected])
public static classLoader ( ) : new
return new \Composer\Autoload\ClassLoader();

getCapsule() public static method

取得 Illuminate\Database\Capsule\Manager
Author: Seven Du ([email protected])
public static getCapsule ( ) : Illuminate\Database\Capsule\Manager
return Illuminate\Database\Capsule\Manager

getRootPath() public static method

获取框架根目录
Author: Seven Du ([email protected])
public static getRootPath ( ) : string
return string

import() public static method

文件加载类
Author: Seven Du ([email protected])
public static import ( string $name, string $ext = '.php' ) : boolean
$name string 文件名
$ext string 文件拓展名
return boolean

init() protected static method

初始化
Author: Seven Du ([email protected])
protected static init ( )

run() public static method

入口文件
Author: Seven Du ([email protected])
public static run ( Composer\Autoload\ClassLoader $classLoader )
$classLoader Composer\Autoload\ClassLoader

Property Details

$_classLoader protected static property

储存Composer自动加载类的对象
protected static $_classLoader

$_files protected static property

文件列表
protected static array $_files
return array

$_root protected static property

框架根
protected static string $_root
return string

$capsule protected static property

储存数据库管理链接
protected static Illuminate\Database\Capsule\Manager $capsule
return Illuminate\Database\Capsule\Manager