PHP Class Registry

ファイルを表示 Open project: bcosca/fatfree Class Usage Examples

Public Methods

Method Description
clear ( $key ) : null Delete object from catalog
exists ( $key ) : boolean Return TRUE if object exists in catalog
get ( $key ) : object Retrieve object from catalog
set ( $key, $obj ) : object Add object to catalog

Private Methods

Method Description
__clone ( ) ! Prohibit cloning
__construct ( ) ! Prohibit instantiation

Method Details

clear() static public method

Delete object from catalog
static public clear ( $key ) : null
$key string
return null

exists() static public method

Return TRUE if object exists in catalog
static public exists ( $key ) : boolean
$key string
return boolean

get() static public method

Retrieve object from catalog
static public get ( $key ) : object
$key string
return object

set() static public method

Add object to catalog
static public set ( $key, $obj ) : object
$key string
$obj object
return object