Elgg
Version 4.x
|
Go to the source code of this file.
Functions | |
elgg_get_site_url () | |
Get the URL for the current (or specified) site, ending with "/". More... | |
elgg_get_plugins_path () | |
Get the plugin path for this installation, ending with slash. More... | |
elgg_get_data_path () | |
Get the data directory path for this installation, ending with slash. More... | |
elgg_get_cache_path () | |
Get the cache directory path for this installation, ending with slash. More... | |
elgg_get_asset_path () | |
Get the asset cache directory path for this installation, ending with slash. More... | |
elgg_get_root_path () | |
Get the project path (where composer is installed), ending with slash. More... | |
elgg_get_engine_path () | |
/path/to/elgg/engine with no trailing slash. More... | |
elgg_get_release () | |
Get the current Elgg release. More... | |
elgg_get_config ($name, $default=null) | |
Get an Elgg configuration value. More... | |
elgg_set_config ($name, $value) | |
Set an Elgg configuration value. More... | |
elgg_save_config ($name, $value) | |
Save a configuration setting. More... | |
elgg_remove_config ($name) | |
Removes a config setting. More... | |
elgg_get_icon_sizes ($entity_type=null, $entity_subtype=null, $type= 'icon') | |
Returns a configuration array of icon sizes. More... | |
elgg_comments_are_latest_first (ElggEntity $container=null) | |
Are comments displayed with latest first? More... | |
elgg_comments_per_page (ElggEntity $container=null) | |
How many comments appear per page. More... | |
elgg_comments_are_latest_first | ( | ElggEntity | $container = null | ) |
Are comments displayed with latest first?
ElggEntity | $container | Entity containing comments |
Definition at line 203 of file configuration.php.
elgg_comments_per_page | ( | ElggEntity | $container = null | ) |
How many comments appear per page.
ElggEntity | $container | Entity containing comments |
Definition at line 217 of file configuration.php.
elgg_get_asset_path | ( | ) |
Get the asset cache directory path for this installation, ending with slash.
If not set in settings, the cache path will be returned.
Definition at line 68 of file configuration.php.
elgg_get_cache_path | ( | ) |
Get the cache directory path for this installation, ending with slash.
If not set in settings, the data path will be returned.
Definition at line 56 of file configuration.php.
elgg_get_config | ( | $name, | |
$default = null |
|||
) |
Get an Elgg configuration value.
string | $name | Name of the configuration value |
mixed | $default | (optional) default value if configuration value is not set |
Definition at line 136 of file configuration.php.
elgg_get_data_path | ( | ) |
Get the data directory path for this installation, ending with slash.
Definition at line 45 of file configuration.php.
elgg_get_engine_path | ( | ) |
/path/to/elgg/engine with no trailing slash.
Definition at line 92 of file configuration.php.
elgg_get_icon_sizes | ( | $entity_type = null , |
|
$entity_subtype = null , |
|||
$type = 'icon' |
|||
) |
Returns a configuration array of icon sizes.
string | $entity_type | Entity type |
string | $entity_subtype | Entity subtype |
string | $type | The name of the icon. e.g., 'icon', 'cover_photo' |
Definition at line 192 of file configuration.php.
elgg_get_plugins_path | ( | ) |
Get the plugin path for this installation, ending with slash.
Definition at line 35 of file configuration.php.
elgg_get_release | ( | ) |
Get the current Elgg release.
Exception | if something wrong with the composer.json |
Definition at line 103 of file configuration.php.
elgg_get_root_path | ( | ) |
Get the project path (where composer is installed), ending with slash.
Note: This is not the same as the Elgg root! In the Elgg 1.x series, Elgg was always at the install root, but as of 2.0, Elgg can be installed as a composer dependency, so you cannot assume that it the install root anymore.
Definition at line 83 of file configuration.php.
elgg_get_site_url | ( | ) |
Get the URL for the current (or specified) site, ending with "/".
Definition at line 25 of file configuration.php.
elgg_remove_config | ( | $name | ) |
Removes a config setting.
string | $name | The name of the field. |
Definition at line 180 of file configuration.php.
elgg_save_config | ( | $name, | |
$value | |||
) |
Save a configuration setting.
string | $name | Configuration name (cannot be greater than 255 characters) |
mixed | $value | Configuration value. Should be string for installation setting |
Definition at line 169 of file configuration.php.
elgg_set_config | ( | $name, | |
$value | |||
) |
Set an Elgg configuration value.
string | $name | Name of the configuration value |
mixed | $value | Value |
Definition at line 156 of file configuration.php.