PHP Class Think, thinksns

Author: liu21st ([email protected])
Exibir arquivo Open project: medz/thinksns-4 Class Usage Examples

Public Methods

Method Description
__get ( $name ) : mixed 自动变量获取
__set ( $name, $value ) 自动变量设置
autoload ( string $classname ) 系统自动加载ThinkPHP类库 并且支持配置自动加载路径
instance ( string $class, string $method = '' ) : object 取得对象实例 支持调用类的静态方法

Method Details

__get() public method

自动变量获取
public __get ( $name ) : mixed
$name 属性名称
return mixed

__set() public method

自动变量设置
public __set ( $name, $value )
$name 属性名称
$value 属性值

autoload() public static method

系统自动加载ThinkPHP类库 并且支持配置自动加载路径
public static autoload ( string $classname )
$classname string 对象类名

instance() public static method

取得对象实例 支持调用类的静态方法
public static instance ( string $class, string $method = '' ) : object
$class string 对象类名
$method string 类的静态方法名
return object