92 return Paths::sanitize($path, $append_slash);
105 if (!isset($release)) {
106 $composerJson = file_get_contents(\
Elgg\Project\
Paths::elgg() .
'composer.json');
107 if ($composerJson ===
false) {
108 throw new ElggException(
'Unable to read composer.json file!');
111 $composer = json_decode($composerJson);
112 if ($composer === null) {
113 throw new ElggException(
'JSON parse error while reading composer.json!');
117 if (!isset($composer->version)) {
118 throw new ElggException(
'Version field must be set in composer.json!');
121 $release = $composer->version;
138 _elgg_services()->logger->info(
"Config value for '{$name}' is not set");
elgg_get_release()
Get the current Elgg release.
elgg_get_asset_path()
Get the asset cache directory path for this installation, ending with slash.
$params
Saves global plugin settings.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_get_icon_sizes(string $entity_type=null, string $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
if(!$user||!$user->canDelete()) $name
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_sanitize_path(string $path, bool $append_slash=true)
Sanitize file paths ensuring that they begin and end with slashes etc.
elgg_comments_per_page(\ElggEntity $container=null)
How many comments appear per page.
elgg_trigger_event_results(string $event, string $type, array $params=[], $returnvalue=null)
Triggers an event where it is expected that the mixed return value could be manipulated by event call...
elgg_set_config(string $name, $value)
Set an Elgg configuration value.
elgg_get_cache_path()
Get the cache directory path for this installation, ending with slash.
elgg_save_config(string $name, $value)
Save a configuration setting.
elgg_get_root_path()
Get the project path (where composer is installed), ending with slash.
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
elgg_remove_config(string $name)
Removes a config setting.
elgg_comments_are_latest_first(\ElggEntity $container=null)
Are comments displayed with latest first?
_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.