|
Elgg
Version master
|
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_sanitize_path (string $path, bool $append_slash=true) | |
| Sanitize file paths ensuring that they begin and end with slashes etc. More... | |
| elgg_get_release () | |
| Get the current Elgg release. More... | |
| elgg_get_config (string $name, $default=null) | |
| Get an Elgg configuration value. More... | |
| elgg_set_config (string $name, $value) | |
| Set an Elgg configuration value. More... | |
| elgg_save_config (string $name, $value) | |
| Save a configuration setting. More... | |
| elgg_remove_config (string $name) | |
| Removes a config setting. More... | |
| elgg_get_icon_sizes (?string $entity_type=null, ?string $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?
| null | \ElggEntity | $container | Entity containing comments |
Definition at line 204 of file configuration.php.
| elgg_comments_per_page | ( | ?\ElggEntity | $container = null | ) |
How many comments appear per page.
| null | \ElggEntity | $container | Entity containing comments |
Definition at line 219 of file configuration.php.
| elgg_get_asset_path | ( | ) |
Get the asset cache directory path for this installation, ending with slash.
Definition at line 64 of file configuration.php.
| elgg_get_cache_path | ( | ) |
Get the cache directory path for this installation, ending with slash.
Definition at line 55 of file configuration.php.
| elgg_get_config | ( | string | $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 46 of file configuration.php.
| elgg_get_icon_sizes | ( | ?string | $entity_type = null, |
| ?string | $entity_subtype = null, |
||
$type = 'icon' |
|||
| ) |
Returns a configuration array of icon sizes.
| null | string | $entity_type | Entity type |
| null | 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 36 of file configuration.php.
| elgg_get_release | ( | ) |
Get the current Elgg release.
Definition at line 102 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 78 of file configuration.php.
| elgg_get_site_url | ( | ) |
Get the URL for the current (or specified) site, ending with "/".
Definition at line 26 of file configuration.php.
| elgg_remove_config | ( | string | $name | ) |
Removes a config setting.
| string | $name | The name of the field. |
Definition at line 180 of file configuration.php.
| elgg_sanitize_path | ( | string | $path, |
| bool | $append_slash = true |
||
| ) |
Sanitize file paths ensuring that they begin and end with slashes etc.
| string | $path | The path |
| bool | $append_slash | Add trailing slash |
Definition at line 91 of file configuration.php.
| elgg_save_config | ( | string | $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 | ( | string | $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.