public function MigrationBase::getTimeLimit in Migrate 7.2
Same name and namespace in other branches
- 6.2 includes/base.inc \MigrationBase::getTimeLimit()
1 call to MigrationBase::getTimeLimit()
- MigrationBase::timeOptionExceeded in includes/
base.inc - Test whether we've exceeded the designated time limit.
File
- includes/
base.inc, line 95 - Defines the base class for migration processes.
Class
- MigrationBase
- The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…
Code
public function getTimeLimit() {
if (isset($this->options['limit']) && ($this->options['limit']['unit'] == 'seconds' || $this->options['limit']['unit'] == 'second')) {
return $this->options['limit']['value'];
}
else {
return NULL;
}
}