37     'subtype' => 
'comment',
 
   38     'container_guid' => 
$entity->guid,
 
   45     'list_class' => 
'comments-list',
 
   47     'preload_owners' => 
true,
 
   55     $options[
'metadata_name_value_pairs'] = [
'level' => 1];
 
   58     if ($show_guid && 
$limit) {
 
   62             'subtype' => 
'comment',
 
   63             'container_guid' => 
$entity->guid,
 
   64             'metadata_name_value_pairs' => [
'level' => 1],
 
   79     unset($count_options[
'offset']);
 
  107             'id' => 
"elgg-form-comment-save-{$entity->guid}",
 
  108             'data-comments-placeholder' => 
$entity->guid,
 
  113             'id' => 
"elgg-form-comment-save-{$entity->guid}",
 
  114             'prevent_double_submit' => 
false,
 
  124                         'text' => 
elgg_echo(
'generic_comments:add'),
 
  127                         'class' => [
'elgg-button', 
'elgg-button-action', 
'elgg-toggle'],
 
  136     $login_form_contents = 
elgg_view_form(
'login', [], [
'returntoreferer' => 
true]);
 
  138     $login_form = 
elgg_view(
'output/longtext', [
 
  139         'value' => 
elgg_echo(
'generic_comment:login_required'),
 
  142     $login_form .= 
elgg_view_module(
'dropdown', 
'', $login_form_contents, [
'id' => 
'comments-login']);
 
  147         'class' => [
'elgg-button', 
'elgg-button-action', 
'elgg-popup'],
 
  148         'data-position' => json_encode([
 
  150             'at' => 
'right bottom',
 
if(!elgg_view_exists("plugins/{$plugin_id}/settings")) $form_vars
 
Extends QueryBuilder with ORDER BY clauses.
 
Database abstraction query builder.
 
elgg_comments_are_latest_first(?\ElggEntity $container=null)
Are comments displayed with latest first?
 
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
 
elgg_comments_per_page(?\ElggEntity $container=null)
How many comments appear per page.
 
const ELGG_VALUE_INTEGER
Value types.
 
if($item instanceof \ElggEntity) elseif($item instanceof \ElggRiverItem) elseif($item instanceof \ElggRelationship) elseif(is_callable([ $item, 'getType']))
 
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
 
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_login_url(array $query=[], string $fragment='')
Returns site's login URL Triggers a 'login_url', 'site' event that can be used by plugins to alter th...
 
elgg_count_entities(array $options=[])
Returns a count of entities.
 
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
 
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
 
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
 
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
 
elgg_view_menu($menu, array $vars=[])
Render a menu.
 
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
 
elgg_view_entity_list(array $entities, array $vars=[])
Returns a rendered list of entities with pagination.
 
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
 
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
 
elgg_is_logged_in()
Returns whether or not the user is currently logged in.