6.0.0-git
2024-04-20
Last Modified 2010-07-31 by Michael Rubinsky

Globally Defined Injector Instances

Basic injectors:

These injectors return a Horde-configured object with the given name.

Horde_Alarm
Horde_Browser
Horde_Cache
Horde_Core_Auth_Signup
Horde_Db_Adapter_Base
Horde_History
Horde_Lock
Horde_Log_Logger
Horde_Mail
Horde_Memcache
Horde_Notification
Horde_Perms
Horde_Registry
Horde_Secret
Horde_SessionHandler
Horde_Service_Facebook
Horde_Service_Twitter
Horde_Template
Horde_Token
Net_DNS_Resolver

Special injectors:

Horde_Auth

Returns factory object with the following publicly available methods:

$auth = getAuth([$driver, [$params]])
$auth = (Horde_Auth_Base)
$driver = (string) The driver. Defaults to the configured driver.
$params = (array) Additional parameters to pass to the driver. Defaults to the configured parameters.

Horde_Ajax

Returns factory object with the following publicly available methods:

$ajax = getAjax($app, $vars, [$action])
$ajax = (Horde_Core_Ajax_Application)
$vars = (Horde_Variables) The Form/Request data.
$action = (string) The ajax action to perform.

Horde_Crypt

Returns factory object with the following publicly available methods:

$crypt = getCrypt($driver, [$params])
$crypt = (Horde_Crypt)
$driver = (string) The driver.
$params = (array) Additional parameters to pass to the driver.

Horde_Data

Returns factory object with the following publicly available methods:

$data = getData([$driver, [$params]])
$data = (Horde_Data_Base)
$driver = (string) The driver.
$params = (array) Driver parameters

Horde_Db

Returns factory object with the following publicly available methods:

$db = getDb([$app, [$type]])
$db = (Horde_Db_Adapter_Base)
$app = (string) The application. Defaults to 'horde'.
$type = (string) The type, i.e. the library that is providing parameters for an SQL driver, like 'prefs' or 'alarm'.

$config = getConfig();
$type = (string) The type, i.e. the library that is providing parameters for an SQL driver, like 'prefs' or 'alarm'.

Horde_Db_Pear

Returns factory object with the following publicly available methods:

$db = getDb([$type])
$db = (DB_common)
$type = (string) 'read' or 'rw'

Horde_Editor

Returns factory object with the following publicly available methods:

$editor = getEditor($driver, [$params])
$editor = (Horde_Editor)
$driver = (string) The editor driver, e.g. 'Ckeditor' or 'Fckeditor'.
$params = (array) Additional parameters to pass to the driver (will override Horde defaults).

Horde_Http_Client

Returns factory object with the following publicly available methods:

$http = getClient([$params])
$http = (Horde_Http_Client)
$params = (array) Additional parameters to pass to the driver (will override Horde defaults).

Horde_Ldap

Returns factory object with the following publicly available methods:

$ldap = getLdap([$driver, [$params]])
$ldap = (Horde_Ldap)
$app = (string) The application. Defaults to 'horde'.
$type = (string) The type, i.e. the library that is providing parameters for an SQL driver, like 'prefs' or 'alarm'.

$config = getConfig($type);
$type = (string) The type, i.e. the library that is providing parameters for an SQL driver, like 'prefs' or 'alarm'.

Horde_LoginTasks

Returns factory object with the following publicly available methods:

$lt = getLoginTasks($app)
$lt = (Horde_LoginTasks)
$app = (string) The current application.

Horde_Prefs_Identity

Returns factory object with the following publicly available methods:

$identity = getIdentity([$user, [$driver]])
$identity = (Horde_Prefs_Identity)
$user = (string) The user to use, if not the current user
$driver = (string) The identity driver. Either empty (use default driver) or an application name.

Horde_Share

Returns factory object with the following publicly available methods:

$share = getScope([$app, [$driver]])
$share = (Horde_Share)
$app = (string) The application scope to use, if not the current app.
$driver = (array) The share driver. Either empty (use default driver from $conf) or a driver name.

Horde_Tree

Returns factory object with the following publicly available methods:

$tree = getTree($name, $renderer, [$driver]])
$tree = (Horde_Tree)
$name = (string) The name of the tree instance.
$renderer = (string) The type of tree renderer (generally 'html', 'javascript', or 'select').
$oarams = (array) Any additional parameters needed.

Horde_Vfs

Returns factory object with the following publicly available methods:

$vfs = getVfs([$scope])
$vfs = (VFS)
$scope = (string) The vfs scope to return, usually an application name.

$config = getVfsConfig([$name])
$config = (array)
$name = (string) The vfs scope to return, usually an application name.