42 'subtype' =>
'comment',
46 'metadata_name_value_pairs' => [
49 'order_by' =>
new OrderByClause(
'e.time_created',
'ASC'),
50 'preload_owners' =>
true,
55 $parent_guid = (int)
$comment->parent_guid;
56 if (!isset($this->children[$parent_guid])) {
57 $this->children[$parent_guid] = [];
60 $this->children[$parent_guid][] =
$comment;
72 if (!isset($this->children)) {
75 $this->preloadThreads([
$comment->getThreadEntity()]);
$guids
Activates all specified installed and inactive plugins.
Extends QueryBuilder with ORDER BY clauses.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
get_entity(int $guid)
Loads and returns an entity object from a guid.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.