-
(object The) getConfig ()
Browse code
Returns the PEAR Config instance.
returns PEAR Config instance
-
(object The) getFrontend ()
Browse code
Returns the PEAR Frontend instance.
returns PEAR Frontend instance
-
(mixed) getOption ($name)
Browse code
| $name |
The configuration name
|
Returns a configuration value.
returns The configuration value
-
(object The) getRegistry ()
Browse code
Returns the PEAR Registry instance.
returns PEAR Registry instance
-
(object The) getRest ()
Browse code
Returns the PEAR Rest instance.
returns PEAR Rest instance
-
(boolean) hasOption ($name)
Browse code
| $name |
The configuration name
|
Returns whether configuration name exists.
returns True if configuration name exists
-
initialize ($dispatcher, $options = array())
Browse code
| $dispatcher |
An event dispatcher instance
|
| $options |
An array of options
|
Initializes this sfPluginManager instance.
Available options:
* plugin_dir: The directory where to put plugins
* cache_dir: The local PEAR cache directory
* rest_base_class: The base class for REST calls (default to sfPearRest) (mainly used for testing)
* downloader_base_class: The base class for downloads (default to sfPearDownloader) (mainly used for testing)
-
initializeConfiguration ($pluginDir, $cacheDir)
Browse code
| $pluginDir |
The plugin path
|
| $cacheDir |
The cache path
|
Registers the PEAR Configuration instance.
-
Initializes the PEAR Frontend instance.
-
Initializes the PEAR Registry instance.
-
registerChannel ($channel, (Boolean) $isDefault = false)
Browse code
| $channel |
The channel name
|
| $isDefault |
true if this is the default PEAR channel, false otherwise
|
Registers a PEAR channel.
-
setOption ($name, $value)
Browse code
| $name |
The configuration name
|
| $value |
The configuration value
|
Sets a configuration value.
-
__construct ($dispatcher, $options)
Browse code
| $dispatcher |
An event dispatcher instance
|
| $options |
An array of options
|
Constructs a new sfPluginManager.