public function initializeImport() { $lockInfo = Import_Lock_Controller::isLockedForModule($this->module); if ($lockInfo != null) { if ($lockInfo['userid'] != $this->user->id) { Import_Utils::showImportLockedError($lockInfo); return false; } else { return true; } } else { Import_Lock_Controller::lock($this->id, $this->module, $this->user); return true; } }