29 $fallback_guid = (int) $request->
getParam(
'container_guid');
42 $top_comment =
$comment->getThreadEntity();
43 if (!$top_comment instanceof \ElggComment) {
56 'subtype' =>
'comment',
58 'metadata_name_value_pairs' => [
'level' => 1],
81 $parts = parse_url(
$url);
82 $parts[
'fragment'] =
"elgg-object-{$comment->guid}";
elgg_redirect_response(string $forward_url=REFERRER, int $status_code=ELGG_HTTP_FOUND, bool $secure_forward_url=true)
Prepare a silent redirect response to be returned by a page or an action handler. ...
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Database abstraction query builder.
elgg_comments_per_page(\ElggEntity $container=null)
How many comments appear per page.
getParam($key, $default=null, $filter=true)
Get an element of the params array.
get_entity(int $guid)
Loads and returns an entity object from a guid.
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
elgg_count_entities(array $options=[])
Returns a count of entities.
elgg_http_build_url(array $parts, bool $html_encode=true)
Builds a URL from the a parts array like one returned by parse_url().
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL's query string.
elgg_comments_are_latest_first(\ElggEntity $container=null)
Are comments displayed with latest first?
Aggregate action for saving settings.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
getContainerEntity()
Get the container entity for this object.
Thrown when entity can not be found.