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)) {
284 $notification =
elgg_extract(
'notification', $returnvalue[
'params']);
286 if ($notification instanceof
Elgg\Notifications\Notification) {
292 $returnvalue[
'subject'] =
'Re: ' .
$container->getDisplayName();
319 'subtype' =>
'comment',
320 'container_guid' =>
$entity->getGUID(),
322 "e.access_id != {$entity->access_id}" 327 $batch = new \ElggBatch(
'elgg_get_entities',
$options, null, 25,
false);
330 $comment->access_id =
$entity->access_id;
352 $value[] =
"{$CONFIG->path}engine/tests/ElggCommentTest.php";
357 $events->registerHandler(
'init',
'system',
'_elgg_comments_init');
358 $hooks->registerHandler(
'unit_test',
'system',
'_elgg_comments_test');
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
elgg_push_breadcrumb($title, $link=null)
Adds a breadcrumb to the breadcrumbs stack.
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an and optionally for type and subtype.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
elgg_in_context($context)
Check if this context exists anywhere in the stack.
elgg echo
Translates a string.
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
elgg global
Pointer to the global context.
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
elgg register_error
Wrapper function for system_messages.
elgg_register_ajax_view($view)
Register a view to be available for ajax calls.
$content
Set robots.txt action.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
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_view_form($action, $form_vars=array(), $body_vars=array())
get_entity($guid)
Loads and returns an entity object from a guid.