24         $class[] = 
'elgg-access-public';
 
   28         $class[] = 
'elgg-access-loggedin';
 
   32         $class[] = 
'elgg-access-private';
 
   39             $owner = $collection->getOwnerEntity();
 
   43             $class[] = 
'elgg-access-group';
 
   44             $membership = 
$owner->membership;
 
   46                 $class[] = 
'elgg-access-group-open';
 
   48                 $class[] = 
'elgg-access-group-closed';
 
   51             if ($collection && !empty($collection->getSubtype())) {
 
   54                 $class[] = 
'elgg-access-limited';
 
   64     'encode_text' => 
true,
 
elgg_extract_class(array $array, array|string $existing=[], string $extract_key='class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_access_collection(int $collection_id)
Get a specified access collection.
elgg_get_readable_access_level(int $entity_access_id)
Return the name of an ACCESS_* constant or an access collection, but only if the logged in user has w...
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
elgg_get_friendly_title(string $title)
When given a title, returns a version suitable for inclusion in a URL.
$class
Displays HTML with human readable representation of an access level.