You are here

protected function Migration::itemOptionExceeded in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/migration.inc \Migration::itemOptionExceeded()

Test whether we've exceeded the designated item limit.

Return value

boolean TRUE if the threshold is exceeded, FALSE if not.

2 calls to Migration::itemOptionExceeded()
Migration::import in includes/migration.inc
Perform an import operation - migrate items from source to destination.
Migration::rollback in includes/migration.inc
Perform a rollback operation - remove migrated items from the destination.

File

includes/migration.inc, line 861
Defines the base class for import/rollback processes.

Class

Migration
The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…

Code

protected function itemOptionExceeded() {
  $itemlimit = $this
    ->getItemLimit();
  if ($itemlimit && $this->total_processed >= $itemlimit) {
    return TRUE;
  }
  return FALSE;
}