Definition at line 11 of file Config.php.
Elgg_Amd_Config::addDependency |
( |
|
$name | ) |
|
Add a dependency.
- Parameters
-
string | $name | Name of the dependency |
- Returns
- void
Definition at line 117 of file Config.php.
Elgg_Amd_Config::addModule |
( |
|
$name, |
|
|
array |
$config = array() |
|
) |
| |
Adds a standard AMD or shimmed module to the config.
- Parameters
-
string | $name | The name of the module |
array | $config | Configuration for the module url: string The full URL for the module if not resolvable from baseUrl deps: array Shimmed module's dependencies exports: string Name of the shimmed module to export |
- Returns
- void
Definition at line 161 of file Config.php.
Elgg_Amd_Config::addPath |
( |
|
$name, |
|
|
|
$path |
|
) |
| |
Add a path mapping for a module.
If a path is already defined, sets current path as preferred.
- Parameters
-
string | $name | Module name |
string | $path | Full URL of the module |
- Returns
- void
Definition at line 35 of file Config.php.
Elgg_Amd_Config::addShim |
( |
|
$name, |
|
|
array |
$config |
|
) |
| |
Configures a shimmed module.
- Parameters
-
string | $name | Module name |
array | $config | Configuration for the module deps: array Dependencies exports: string Name of the shimmed module to export |
- Returns
- void
Definition at line 72 of file Config.php.
Elgg_Amd_Config::getConfig |
( |
| ) |
|
Get the configuration of AMD.
- Returns
- array
Definition at line 219 of file Config.php.
Elgg_Amd_Config::getDependencies |
( |
| ) |
|
Get registered dependencies.
- Returns
- array
Definition at line 136 of file Config.php.
Elgg_Amd_Config::hasDependency |
( |
|
$name | ) |
|
Is this dependency registered.
- Parameters
-
- Returns
- bool
Definition at line 146 of file Config.php.
Elgg_Amd_Config::hasModule |
( |
|
$name | ) |
|
Is module configured?
- Parameters
-
- Returns
- boolean
Definition at line 198 of file Config.php.
Elgg_Amd_Config::hasShim |
( |
|
$name | ) |
|
Is this shim defined.
- Parameters
-
string | $name | The name of the shim |
- Returns
- bool
Definition at line 97 of file Config.php.
Elgg_Amd_Config::removeDependency |
( |
|
$name | ) |
|
Removes a dependency.
- Parameters
-
string | $name | Name of the dependency |
- Returns
- void
Definition at line 127 of file Config.php.
Elgg_Amd_Config::removeModule |
( |
|
$name | ) |
|
Removes all config for a module.
- Parameters
-
- Returns
- bool
Definition at line 186 of file Config.php.
Elgg_Amd_Config::removePath |
( |
|
$name, |
|
|
|
$path = null |
|
) |
| |
Remove a path for a module.
- Parameters
-
string | $name | Module name |
mixed | $path | The path to remove. If null, removes all paths (default). |
- Returns
- void
Definition at line 54 of file Config.php.
Elgg_Amd_Config::removeShim |
( |
|
$name | ) |
|
Unregister the shim config for a module.
- Parameters
-
- Returns
- void
Definition at line 107 of file Config.php.
Elgg_Amd_Config::setBaseUrl |
( |
|
$url | ) |
|
Set the base URL for the site.
- Parameters
-
- Returns
- void
Definition at line 23 of file Config.php.
The documentation for this class was generated from the following file: