Go to the source code of this file.
Classes | |
class | Ref |
Functions | |
ref (&$obj) | |
is_ref ($obj) |
|
Returns true if the object is a Ref object.
Definition at line 56 of file Ref.php. Referenced by Ref::Ref(). |
|
Create a new Ref object referencing specified object or variable. Any modification of the source object modify the Refence content, any modification of the reference obj modify the source object. The referenced object can be reached using the reference object using the 'obj' property. <?php $a = new Foo(); $ref_a = Ref($a); $ref_a->obj->doBar(); // call doBar() on $a ?>
Definition at line 44 of file Ref.php. Referenced by OHash::__construct(), OHash::set(), OHash::setAll(), OHash::setRef(), and OHash::values(). |