4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionProcessLocker.php';
32 $this->lockFileHandles =
array();
40 $this->
requestLock(self::PROCESS_NAME_QUESTION_WORKING_STATE_UPDATE);
48 $this->
releaseLock(self::PROCESS_NAME_QUESTION_WORKING_STATE_UPDATE);
56 $this->
requestLock(self::PROCESS_NAME_QUESTION_WORKING_STATE_UPDATE);
64 $this->
releaseLock(self::PROCESS_NAME_QUESTION_WORKING_STATE_UPDATE);
73 $this->lockFileHandles[$processName] = fopen($lockFilePath,
'w');
74 flock($this->lockFileHandles[$processName], LOCK_EX);
83 $path = $this->lockFileStorage->getPath();
84 return $path.
'/'.$processName.
'.lock';
92 flock($this->lockFileHandles[$processName], LOCK_UN);
93 fclose($this->lockFileHandles[$processName]);
__construct(ilAssQuestionProcessLockFileStorage $lockFileStorage)
const PROCESS_NAME_QUESTION_WORKING_STATE_UPDATE
releaseLock($processName)
onAfterExecutingPersistWorkingStateOperation()
{}
requestLock($processName)
Create styles array
The data for the language used.
getLockFilePath($processName)
onBeforeExecutingPersistWorkingStateOperation()
{}
onAfterExecutingUserSolutionAdoptOperation()
{}
onBeforeExecutingUserSolutionAdoptOperation()
{}