PHP Class WeakRef, ClearSky

WARNING: Do not include this file
Afficher le fichier Open project: robske110/ClearSky

Méthodes publiques

Méthode Description
__construct ( object $object = null ) Constructs a new weak reference.
acquire ( ) : boolean Acquires a strong reference on that object, virtually turning the weak reference into a strong one.
get ( ) : object Returns the object pointed to by the weak reference
release ( ) : boolean Releases a previously acquired reference, potentially turning a strong reference back into a weak reference.
valid ( ) : boolean Checks whether the object referenced still exists

Method Details

__construct() public méthode

Constructs a new weak reference.
public __construct ( object $object = null )
$object object

acquire() public méthode

Acquires a strong reference on that object, virtually turning the weak reference into a strong one.
public acquire ( ) : boolean
Résultat boolean

get() public méthode

Returns the object pointed to by the weak reference
public get ( ) : object
Résultat object

release() public méthode

Releases a previously acquired reference, potentially turning a strong reference back into a weak reference.
public release ( ) : boolean
Résultat boolean

valid() public méthode

Checks whether the object referenced still exists
public valid ( ) : boolean
Résultat boolean