getVersion()
Version of the upgrade.
countItems()
The total number of items to process during the upgrade.
shouldBeSkipped()
Should this upgrade be skipped?
getUpgrade()
Returns the related upgrade entity.
if(empty($guid)) $upgrade
const UNKNOWN_COUNT
countItems() should return this if it doesn't know how many items remain.
Represents an upgrade that runs outside of the upgrade.php script.
Long running upgrades should implement this interface.
Result of a single BatchUpgrade run.
run(Result $result, $offset)
Runs upgrade on a single batch of items.
__construct(protected?\ElggUpgrade $upgrade=null)
Constructs a upgrade batch.
needsIncrementOffset()
Should the run() method receive an offset representing all processed items?