OXID eShop CE
6.1.5
|
Public Member Functions | |
setBaseDirectory ($sDir) | |
getFiles () | |
addFile ($sFile) | |
addDirectoryFiles ($sFolder, $aExtensions=[], $blRecursive=false) | |
Protected Attributes | |
$_sBaseDirectory | |
$_aFiles | |
Directory reader. Performs reading of file list of one shop directory
OxidEsales\EshopCommunity\Application\Model\FileCollector::addDirectoryFiles | ( | $sFolder, | |
$aExtensions = [] , |
|||
$blRecursive = false |
|||
) |
browse all folders and sub-folders after files which have given extensions
string | $sFolder | which is explored |
array | $aExtensions | list of extensions to scan - if empty all files are taken |
boolean | $blRecursive | should directories be checked in recursive manner |
exception |
OxidEsales\EshopCommunity\Application\Model\FileCollector::addFile | ( | $sFile | ) |
Add one file to collection if it exists
string | $sFile | file name to add to collection |
Exception |
OxidEsales\EshopCommunity\Application\Model\FileCollector::getFiles | ( | ) |
get collection files
OxidEsales\EshopCommunity\Application\Model\FileCollector::setBaseDirectory | ( | $sDir | ) |
Setter for working directory
string | $sDir | Directory |
|
protected |
|
protected |