45             if (empty($page[1])) {
 
   68                 'is_edit_page' => 
true,
 
  103     $fail = 
function () {
 
  132         'subtype' => 
'comment',
 
  135         'wheres' => [
"e.guid < " . (
int)
$comment->guid],
 
  148         ]) . 
"#elgg-object-{$comment->guid}";
 
  176         if (
$item->getName() === 
'access') {
 
  213     return "comment/view/{$entity->guid}/{$container->guid}";
 
  234     if (
$params[
'subtype'] === 
'comment') {
 
  277 function _elgg_comments_notification_email_subject($hook, 
$type, $returnvalue, 
$params) {
 
  278     if (!is_array($returnvalue)) {
 
  283     if (empty($returnvalue[
'params'][
'notification'])) {
 
  288     $notification = $returnvalue[
'params'][
'notification'];
 
  290     if ($notification instanceof 
Elgg\Notifications\Notification) {
 
  296             $returnvalue[
'subject'] = 
'Re: ' . 
$container->getDisplayName();
 
  323         'subtype' => 
'comment',
 
  324         'container_guid' => 
$entity->getGUID(),
 
  326             "e.access_id != {$entity->access_id}" 
  331     $batch = new \ElggBatch(
'elgg_get_entities', 
$options, 
null, 25, 
false);
 
  356     $value[] = 
"{$CONFIG->path}engine/tests/ElggCommentTest.php";
 
  361     $events->registerHandler(
'init', 
'system', 
'_elgg_comments_init');
 
  362     $hooks->registerHandler(
'unit_test', 
'system', 
'_elgg_comments_test');
 
register_error($error)
Display an error on next page load.
 
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
 
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
 
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
 
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
 
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
 
forward($location="", $reason='system')
Forward to $location.
 
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
 
elgg_push_breadcrumb($title, $link=null)
Adds a breadcrumb to the breadcrumbs stack.
 
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an \ElggEntity and optionally for type and subtype.
 
get_entity($guid)
Loads and returns an entity object from a guid.
 
elgg_register_entity_type($type, $subtype=null)
Registers an entity type and subtype as a public-facing entity that should be shown in search and by ...
 
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
 
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
 
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
 
elgg_in_context($context)
Check if this context exists anywhere in the stack.
 
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
 
elgg_register_ajax_view($view)
Register a view to be available for ajax calls.
 
elgg_view_page($title, $body, $page_shell='default', $vars=array())
Assembles and outputs a full page.
 
elgg_view_form($action, $form_vars=array(), $body_vars=array())