19 parent::initializeAttributes();
21 $this->attributes[
'subtype'] =
'comment';
29 public function delete($recursive =
true) {
30 $result = parent::delete($recursive);
37 'subtype' =>
'comment',
40 'batch_inc_offset' =>
false,
41 'metadata_name_value_pairs' => [
42 'name' =>
'parent_guid',
43 'value' => $this->guid,
49 $child->delete($recursive);
97 return isset($this->level) ? (int) $this->level : 1;
107 if (isset($this->thread_guid)) {
108 return (
int) $this->thread_guid;
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
const ELGG_IGNORE_ACCESS
elgg_call() flags
const ELGG_SHOW_DISABLED_ENTITIES
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
getContainerEntity()
Get the container entity for this object.
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
$guid
Reset an ElggUpgrade.
get_entity($guid)
Loads and returns an entity object from a guid.