PHP Class Ts, thinksns

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

Protected Properties

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

Méthodes publiques

Méthode 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 ) 入口文件

Méthodes protégées

Méthode Description
init ( ) 初始化

Method Details

classLoader() public static méthode

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

getCapsule() public static méthode

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

getRootPath() public static méthode

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

import() public static méthode

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

init() protected static méthode

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

run() public static méthode

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

Property Details

$_classLoader protected_oe static_oe property

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

$_files protected_oe static_oe property

文件列表
protected static array $_files
Résultat array

$_root protected_oe static_oe property

框架根
protected static string $_root
Résultat string

$capsule protected_oe static_oe property

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