58 return Paths::sanitize(
$path);
70 return Paths::sanitize(
$path);
106 if (!isset($release)) {
107 $composerJson = file_get_contents(\
Elgg\Project\
Paths::elgg() .
'composer.json');
108 if ($composerJson ===
false) {
109 throw new Exception(
"Unable to read composer.json file!");
112 $composer = json_decode($composerJson);
113 if ($composer === null) {
114 throw new Exception(
"JSON parse error while reading composer.json!");
118 if (!isset($composer->version)) {
119 throw new Exception(
"Version field must be set in composer.json!");
121 $release = $composer->version;
138 elgg_log(
"Config value for '$name' is not set'",
'INFO');
elgg_get_release()
Get the current Elgg release.
if(!$user||!$user->canDelete()) $name
elgg_get_asset_path()
Get the asset cache directory path for this installation, ending with slash.
$params
Saves global plugin settings.
elgg_get_icon_sizes($entity_type=null, $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
elgg_comments_per_page(ElggEntity $container=null)
How many comments appear per page.
elgg_save_config($name, $value)
Save a configuration setting.
elgg_get_cache_path()
Get the cache directory path for this installation, ending with slash.
elgg_set_config($name, $value)
Set an Elgg configuration value.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg_get_root_path()
Get the project path (where composer is installed), ending with slash.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
elgg_get_engine_path()
/path/to/elgg/engine with no trailing slash.
_elgg_services()
Get the global service provider.
elgg_get_plugins_path()
Get the plugin path for this installation, ending with slash.
elgg_get_data_path()
Get the data directory path for this installation, ending with slash.
elgg_comments_are_latest_first(ElggEntity $container=null)
Are comments displayed with latest first?
elgg_remove_config($name)
Removes a config setting.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.