Inherits Doctrine_Locator_Injectable, and ArrayAccess.
Inherited by Doctrine_Collection, Doctrine_Column, Doctrine_EventListener_Chain, Doctrine_Record_Abstract, and Doctrine_Record_Listener_Chain.
Definition at line 33 of file Access.php.
| Doctrine_Access::__get |
( |
|
$name | ) |
|
Get key from data
- See Also
- get, offsetGet
- Parameters
-
- Returns
- mixed
Definition at line 70 of file Access.php.
{
return $this->get($name);
}
| Doctrine_Access::__isset |
( |
|
$name | ) |
|
Check if key exists in data
- Parameters
-
- Returns
- boolean whether or not this object contains $name
Definition at line 81 of file Access.php.
| Doctrine_Access::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Set key and value to data
- See Also
- set, offsetSet
- Parameters
-
- Returns
- void
Definition at line 58 of file Access.php.
{
$this->set($name, $value);
}
| Doctrine_Access::__unset |
( |
|
$name | ) |
|
Remove key from data
- Parameters
-
- Returns
- void
Definition at line 92 of file Access.php.
{
return $this->remove($name);
}
| Doctrine_Access::add |
( |
|
$value | ) |
|
Add the value
- Parameters
-
| mixed | $value | The value to add |
- Returns
- void
Definition at line 199 of file Access.php.
| Doctrine_Locator_Injectable::bind |
( |
|
$name, |
|
|
|
$resource |
|
) |
| |
|
inherited |
bind binds a resource to a name
- Parameters
-
| string | $name | the name of the resource to bind |
| mixed | $value | the value of the resource |
- Returns
- Doctrine_Locator this object
Definition at line 120 of file Injectable.php.
{
$this->_resources[$name] = $resource;
return $this;
}
| Doctrine_Access::contains |
( |
|
$offset | ) |
|
Check if the specified offset exists
- Parameters
-
| mixed | $offset | The offset to check |
- Returns
- boolean True if exists otherwise false
Definition at line 188 of file Access.php.
| Doctrine_Access::get |
( |
|
$offset | ) |
|
Return the element with the specified offset
- Parameters
-
| mixed | $offset | The offset to return |
- Returns
- mixed
Definition at line 165 of file Access.php.
| Doctrine_Locator_Injectable::getLocator |
( |
| ) |
|
|
inherited |
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
- Returns
- Doctrine_Locator
Definition at line 75 of file Injectable.php.
{
if ( ! isset($this->_locator)) {
}
return $this->_locator;
}
| static Doctrine_Locator_Injectable::getNullObject |
( |
| ) |
|
|
staticinherited |
| static Doctrine_Locator_Injectable::initNullObject |
( |
Doctrine_Null |
$null | ) |
|
|
staticinherited |
initNullObject initializes the null object
- Parameters
-
- Returns
- void
Definition at line 134 of file Injectable.php.
{
self::$_null = $null;
}
| Doctrine_Locator_Injectable::locate |
( |
|
$name | ) |
|
|
inherited |
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
- See Also
- Doctrine_Locator::locate()
- Exceptions
-
- Parameters
-
| string | $name | the name of the resource |
- Returns
- mixed the located resource
Definition at line 96 of file Injectable.php.
{
if (isset($this->_resources[$name])) {
if (is_object($this->_resources[$name])) {
return $this->_resources[$name];
} else {
$concreteImpl = $this->_resources[$name];
return $this->
getLocator()->locate($concreteImpl);
}
} else {
}
}
| Doctrine_Access::offsetExists |
( |
|
$offset | ) |
|
Check if an offset axists
- Parameters
-
- Returns
- boolean Whether or not this object contains $offset
Definition at line 103 of file Access.php.
| Doctrine_Access::offsetGet |
( |
|
$offset | ) |
|
An alias of get()
- See Also
- get, __get
- Parameters
-
- Returns
- mixed
Definition at line 115 of file Access.php.
{
return $this->get($offset);
}
| Doctrine_Access::offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
Sets $offset to $value
- See Also
- set, __set
- Parameters
-
- Returns
- void
Definition at line 128 of file Access.php.
{
if ( ! isset($offset)) {
} else {
$this->set($offset, $value);
}
}
| Doctrine_Access::offsetUnset |
( |
|
$offset | ) |
|
| Doctrine_Access::remove |
( |
|
$offset | ) |
|
Remove the element with the specified offset
- Parameters
-
| mixed | $offset | The offset to remove |
- Returns
- boolean True if removed otherwise false
Definition at line 154 of file Access.php.
| Doctrine_Access::set |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
Set the offset to the value
- Parameters
-
| mixed | $offset | The offset to set |
| mixed | $value | The value to set the offset to |
Definition at line 177 of file Access.php.
| Doctrine_Access::setArray |
( |
array |
$array | ) |
|
Set an entire aray to the data
- Parameters
-
| array | $array | An array of key => value pairs |
- Returns
- Doctrine_Access
Definition at line 41 of file Access.php.
{
foreach ($array as $k => $v) {
$this->set($k, $v);
}
return $this;
}
setLocator this method can be used for setting the locator object locally
- Parameters
-
- Returns
- Doctrine_Locator_Injectable this instance
Definition at line 60 of file Injectable.php.
{
$this->_locator = $locator;
return $this;
}
The documentation for this class was generated from the following file: