Page MenuHomeContribution Center

final class LiskMigrationIterator
Phabricator Technical Documentation (Storage)

Iterate over every object of a given type, without holding all of them in memory. This is useful for performing database migrations.

$things = new LiskMigrationIterator(new LiskThing());
foreach ($things as $thing) {
  // do something
}
NOTE: This only works on objects with a normal id column.

Tasks

No methods for this task.

Other Methods

Methods

public function __construct($object)

This method is not documented.
Parameters
LiskDAO$object
Return
this//Implicit.//

protected function didRewind()

This method is not documented.
Return
wild

public function key()

This method is not documented.
Return
wild

protected function loadPage()

This method is not documented.
Return
wild