46 foreach ($entities as
$entity) {
48 'x1' => (int) $entity->x1,
49 'x2' => (
int) $entity->x2,
50 'y1' => (int) $entity->y1,
51 'y2' => (
int) $entity->y2,
55 $entity->saveIconCoordinates($coords,
'icon');
addSuccesses(int $num=1)
Set an item (or items) as successfully upgraded.
Generic interface which allows catching of all exceptions thrown in Elgg.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
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.
Result of a single BatchUpgrade run.
getOptions(array $options=[])
Get options for the upgrade.
run(Result $result, $offset)
{}
System upgrades are executed synchronously at system upgrade.