getVersion()
Version of the upgrade.
__construct(\ElggUpgrade $upgrade=null)
Constructs a upgrade batch.
countItems()
The total number of items to process during the upgrade.
shouldBeSkipped()
Should this upgrade be skipped?
getUpgrade()
Returns the related upgrade entity.
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.
needsIncrementOffset()
Should the run() method receive an offset representing all processed items?