26 $class[] =
'elgg-access-public';
30 $class[] =
'elgg-access-loggedin';
34 $class[] =
'elgg-access-private';
44 $class[] =
'elgg-access-group';
45 $membership =
$owner->membership;
47 $class[] =
'elgg-access-group-open';
49 $class[] =
'elgg-access-group-closed';
52 if ($collection && !empty($collection->getSubtype())) {
55 $class[] =
'elgg-access-limited';
62 '#tag_name' =>
'span',
67 'encode_text' =>
true,
get_access_collection(int $collection_id)
Get a specified access collection.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
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
Translates a string.
elgg_get_friendly_title($title)
When given a title, returns a version suitable for inclusion in a URL.
if($entity instanceof ElggEntity) if(!isset($access_id)) $access_id_string
$class
Displays HTML with human readable representation of an access level.
get_entity($guid)
Loads and returns an entity object from a guid.