PHP 클래스 WeakRef, ClearSky

WARNING: Do not include this file
파일 보기 프로젝트 열기: robske110/ClearSky

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

acquire() 공개 메소드

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

get() 공개 메소드

Returns the object pointed to by the weak reference
public get ( ) : object
리턴 object

release() 공개 메소드

Releases a previously acquired reference, potentially turning a strong reference back into a weak reference.
public release ( ) : boolean
리턴 boolean

valid() 공개 메소드

Checks whether the object referenced still exists
public valid ( ) : boolean
리턴 boolean