28 if (
$group->isToolEnabled($tool_name)) {
33 $ex->setRedirectUrl(
$group->getURL());
50 if (\
Elgg\Application::isCli()) {
$guid
Reset an ElggUpgrade.
_elgg_services()
Get the global service provider.
get_entity(int $guid)
Loads and returns an entity object from a guid.
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_signed_request_gatekeeper()
Validates if the HMAC signature of the current request is valid Issues 403 response if signature is i...
elgg_admin_gatekeeper()
Used at the top of a page to mark it as admin only.
elgg_entity_gatekeeper(int $guid, ?string $type=null, ?string $subtype=null, bool $validate_can_edit=false)
Can the viewer see this entity?
elgg_group_tool_gatekeeper(string $tool_name, ?int $group_guid=null)
Checks if a group has a specific tool enabled.
elgg_ajax_gatekeeper()
Require that the current request be an XHR.
elgg_get_current_url()
Returns the current page's complete URL.
elgg_get_page_owner_guid()
Elgg page owner library.
if(!elgg_get_config('trash_enabled')) $group
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.