49 if ($comment->delete()) {
71 'subtype' =>
'comment',
76 'metadata_name_value_pairs' => [
77 'name' =>
'parent_guid',
89 return $qb->
compare(
"{$md}.value",
'NOT IN', $sub->getSQL());
addFailures(int $num=1)
Increment failure count.
Database abstraction query builder.
addSuccesses(int $num=1)
Set an item (or items) as successfully upgraded.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
elgg_count_entities(array $options=[])
Returns a count of entities.
compare($x, $comparison, $y=null, $type=null, $case_sensitive=null)
Build value comparison clause.
Result of a single BatchUpgrade run.
subquery($table, $alias=null)
Creates a new SelectQueryBuilder for join/where subqueries using the DB connection of the primary Que...
joinMetadataTable($from_alias= '', $from_column= 'guid', $name=null, $join_type= 'inner', $joined_alias=null)
Join metadata table from alias and return joined table alias.
Class to extend for asynchronous upgrades, i.e.