本文整理汇总了PHP中TYPO3\CMS\Core\Resource\ResourceStorage::isWithinProcessingFolder方法的典型用法代码示例。如果您正苦于以下问题:PHP ResourceStorage::isWithinProcessingFolder方法的具体用法?PHP ResourceStorage::isWithinProcessingFolder怎么用?PHP ResourceStorage::isWithinProcessingFolder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Resource\ResourceStorage
的用法示例。
在下文中一共展示了ResourceStorage::isWithinProcessingFolder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: detectChangedFilesInStorage
/**
* Adds updated files to the processing queue
*
* @param array $fileIdentifierArray
* @return void
*/
protected function detectChangedFilesInStorage(array $fileIdentifierArray)
{
foreach ($fileIdentifierArray as $fileIdentifier) {
// skip processed files
if ($this->storage->isWithinProcessingFolder($fileIdentifier)) {
continue;
}
// Get the modification time for file-identifier from the storage
$modificationTime = $this->storage->getFileInfoByIdentifier($fileIdentifier, array('mtime'));
// Look if the the modification time in FS is higher than the one in database (key needed on timestamps)
$indexRecord = $this->getFileIndexRepository()->findOneByStorageUidAndIdentifier($this->storage->getUid(), $fileIdentifier);
if ($indexRecord !== FALSE) {
$this->identifiedFileUids[] = $indexRecord['uid'];
if ($indexRecord['modification_date'] < $modificationTime['mtime'] || $indexRecord['missing']) {
$this->filesToUpdate[$fileIdentifier] = $indexRecord;
}
} else {
$this->filesToUpdate[$fileIdentifier] = NULL;
}
}
}