getSyncFilePath($key); $fileUtils = ABJ_404_Solution_Functions::getInstance(); if (!file_exists($filePath)) { return ""; } $contents = $fileUtils->readFileContents($filePath, false); return $contents; } function writeOwnerToFile($key, $uniqueID) { $filePath = $this->getSyncFilePath($key); file_put_contents($filePath, $uniqueID, LOCK_EX); } function releaseLock($uniqueID, $key) { $filePath = $this->getSyncFilePath($key); $fileUtils = ABJ_404_Solution_Functions::getInstance(); $fileUtils->safeUnlink($filePath); } }