src/xPDO/Cache/xPDOCacheManager.php
protected function lockFileName($file, array $options = array()) {
        $lockDir = $this->getOption('lock_dir', $options, $this->getCachePath() . 'locks' . DIRECTORY_SEPARATOR);
        return $lockDir . preg_replace('/\W/', '_', $file) . $this->getOption(xPDO::OPT_LOCKFILE_EXTENSION, $options, '.lock');
    }
protected function lockFileName($file, array $options = array()) {
        $lockDir = $this->getOption('lock_dir', $options, $this->getCachePath() . 'locks' . DIRECTORY_SEPARATOR);
        return $lockDir . preg_replace('/\W/', '_', $file) . $this->getOption(xPDO::OPT_LOCKFILE_EXTENSION, $options, '.lock');
    }
protected function lockFileName ( $ file , array $ options = array ( ) ) { $ lockDir = $ this -> getOption ( 'lock_dir' , $ options , $ this -> getCachePath ( ) . 'locks' . DIRECTORY_SEPARATOR ) ; return $ lockDir . preg_replace ( '/\W/' , '_' , $ file ) . $ this -> getOption ( xPDO :: OPT_LOCKFILE_EXTENSION , $ options , '.lock' ) ; }
Get an absolute path to a lock file for a specified file path.

@param string $file The absolute path to get the lock filename for.
@param array $options An array of options for the process.
@return string The absolute path for the lock file
Get an absolute path to a lock file for a specified file path .