\Horde_Rdo_Factory

The Horde_Rdo_Factory is a caching root object for Horde_Rdo_Mapper instances This should itself be injected into applications by an injector

Summary

Methods
Properties
Constants
__construct()
count()
create()
No public properties found
No constants found
No protected methods found
$_mappers
$_adapter
N/A
No private methods found
No private properties found
N/A

Properties

$_mappers

$_mappers : array

The list of already loaded Horde_Rdo_Mapper classes

Type

array

$_adapter

$_adapter : \Horde_Db_Adapter

The database connection to pass to the Horde_Rdo_Mapper classes

Type

\Horde_Db_Adapter

Methods

__construct()

__construct(\Horde_Db_Adapter  $adapter) : \Horde_Rdo_Factory

Constructor.

Parameters

\Horde_Db_Adapter $adapter

A database adapter.

Returns

\Horde_Rdo_Factory

The Horde_Rdo_Factory

count()

count() : integer

Counts the number of cached mappers.

Returns

integer —

The number of cached mappers.

create()

create(string  $class, \Horde_Db_Adapter  $adapter = null) : \Horde_Rdo_Mapper

Return the mapper instance.

Parameters

string $class

The mapper class.

\Horde_Db_Adapter $adapter

A database adapter.

Throws

\Horde_Rdo_Exception

Returns

\Horde_Rdo_Mapper

The Horde_Rdo_Mapper descendant instance.