PHP Class Registry

Afficher le fichier Open project: bcosca/fatfree Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
__clone ( ) ! Prohibit cloning
__construct ( ) ! Prohibit instantiation

Method Details

clear() static public méthode

Delete object from catalog
static public clear ( $key ) : null
$key string
Résultat null

exists() static public méthode

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

get() static public méthode

Retrieve object from catalog
static public get ( $key ) : object
$key string
Résultat object

set() static public méthode

Add object to catalog
static public set ( $key, $obj ) : object
$key string
$obj object
Résultat object