Support_ResourcesFactory class for accessing system and application-wide resources
Located in /support/lib/Support/Resources.php (line 29)
static array
db_connection
([boolean $writer = true], [boolean $unique = false], [string $provider = null])
static void
register_cache
(Support_Resources_CacheProvider $cache, string $providerName, [boolean $asDefault = false])
static void
register_config_data
(Support_Resources_ConfigProvider $cfg, $providerName, [boolean $asDefault = false], string $name)
static void
register_db_connection
(Support_Resources_ConfigProvider $db, $providerName, [boolean $asDefault = false], string $name)
static void
register_logger
(Support_Resources_LoggerProvider $logger, $providerName, [boolean $asDefault = false], string $name)
static void
register_template_engine
(Support_Resources_TemplateProvider $tpl, $providerName, [boolean $asDefault = false], string $name)
void
register_provider
(string $resource, string $provider, string $interface, object $implementor, boolean $asDefault)
static cache (line 105)
Get a cache store
static config_data (line 81)
Get the array of application configuration data
static db_connection (line 94)
Get a database connection
static instance (line 229)
Returns the shared instance. Used only internally.
static logger (line 70)
Get a logger instance
static register_cache (line 169)
Register a cache provider
static register_config_data (line 143)
Register a config data provider
static register_db_connection (line 156)
Register a db connection provider
static register_logger (line 130)
Register a logger provider
static register_template_engine (line 117)
Register a template engine provider
static set_default_cache (line 221)
Set the default cache provider
static set_default_config_data (line 201)
Set the default config data provider
static set_default_db_connection (line 211)
Set the default db connection provider
static set_default_logger (line 191)
Set the default logger provider
static set_default_template_engine (line 181)
Set the default template engine provider
static template_engine (line 58)
Get an instance of the template engine
Constructor __construct (line 37)
Constructor -- Direct instantiation is not allowed
get_resource (line 238)
Generic implementation of getting a resource from a provider
register_provider (line 270)
Generic implementation of registering a resource provider
set_default_provider (line 288)
Generic implementation of setting a default resource provider
Documentation generated on Wed, 25 Apr 2012 09:46:45 -0700 by phpDocumentor 1.4.3