Doctrine_Locator_Injectable
public class Doctrine_Locator_Injectable
http://www.doctrine-project.org| Field Summary | |
|---|---|
| protected Doctrine_Locator the locator object | . |
| protected static Doctrine_Null $null Doctrine_Null object, used for extremely fast null value checking | . |
| protected array an array of bound resources | . |
| Method Summary | |
|---|---|
| Doctrine_Locator | bind(string name, mixed resource, mixed value) bind binds a resource to a name. |
| Doctrine_Locator | getLocator returns the locator associated with this object. |
| static Doctrine_Null | getNullObject returns the null object associated with this object. |
| static void | initNullObject(Doctrine_Null null) initNullObject initializes the null object. |
| mixed | locate(string name) locate locates a resource by given name and returns it. |
| Doctrine_Locator_Injectable | setLocator(mixed locator, Doctrine_Locator the) setLocator this method can be used for setting the locator object locally. |
protected Doctrine_Locator the locator object $_locator
protected static Doctrine_Null $null Doctrine_Null object, used for extremely fast null value checking $_null
protected array an array of bound resources $_resources = array()
public Doctrine_Locator bind(string name, mixed resource, mixed value)
bind binds a resource to a name
public Doctrine_Locator getLocator()
getLocator returns the locator associated with this object
if there are no locator locally associated then this method tries to fetch the current global locator
public static Doctrine_Null getNullObject()
getNullObject returns the null object associated with this object
public static void initNullObject(Doctrine_Null null)
initNullObject initializes the null object
public mixed locate(string name)
locate locates a resource by given name and returns it
if the resource cannot be found locally this method tries to use the global locator for finding the resource
public Doctrine_Locator_Injectable setLocator(mixed locator, Doctrine_Locator the)
setLocator this method can be used for setting the locator object locally
Doctrine_Locator_Injectable