Inherits Doctrine_Hydrator_Abstract.
Definition at line 33 of file SingleScalarDriver.php.
| Doctrine_Hydrator_Abstract::_isIgnoredName |
( |
|
$name | ) |
|
|
protectedinherited |
Checks whether a name is ignored. Used during result set parsing to skip certain elements in the result set that do not have any meaning for the result. (I.e. ORACLE limit/offset emulation adds doctrine_rownum to the result set).
- Parameters
-
- Returns
- boolean
Definition at line 102 of file Abstract.php.
{
return $name == 'DOCTRINE_ROWNUM';
}
| 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_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_Hydrator_Abstract::setHydrationMode |
( |
|
$hydrationMode | ) |
|
|
inherited |
Set the hydration mode
- Parameters
-
| mixed | $hydrationMode | One of the Doctrine_Core::HYDRATE_* constants or a string representing the name of the hydration mode or or an instance of the hydration class |
- Returns
- void
Definition at line 78 of file Abstract.php.
{
$this->_hydrationMode = $hydrationMode;
}
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;
}
| Doctrine_Hydrator_Abstract::setQueryComponents |
( |
|
$queryComponents | ) |
|
|
inherited |
Set the query components (structure and query instructions)
- Parameters
-
- Returns
- void
Definition at line 54 of file Abstract.php.
{
$this->_queryComponents = $queryComponents;
}
| Doctrine_Hydrator_Abstract::setTableAliases |
( |
|
$tableAliases | ) |
|
|
inherited |
Set the table aliases for this query
- Parameters
-
- Returns
- void
Definition at line 65 of file Abstract.php.
{
$this->_tableAliases = $tableAliases;
}
The documentation for this class was generated from the following file: