

Definition at line 6 of file oxutilsfile.php.
Public Member Functions | |
| normalizeDir ($sDir) | |
| copyDir ($sSourceDir, $sTargetDir) | |
| deleteDir ($sSourceDir) | |
| readRemoteFileAsString ($sPath) | |
| processFiles ($oObject=null) | |
| checkFile ($sFile) | |
| urlValidate ($sLink) | |
| handleUploadedFile ($aFileInfo, $sUploadPath) | |
Static Public Member Functions | |
| static | getInstance () |
Static Private Attributes | |
| static | $_instance = null |
| static oxUtilsFile.getInstance | ( | ) | [static] |
| oxUtilsFile.normalizeDir | ( | $ | sDir | ) |
Normalizes dir by adding missing trailing slash
| string | $sDir Directory |
Definition at line 45 of file oxutilsfile.php.
| oxUtilsFile.copyDir | ( | $ | sSourceDir, | |
| $ | sTargetDir | |||
| ) |
Copies directory tree for creating a new shop.
| string | $sSourceDir Source directory | |
| string | $sTargetDir Target directory |
Definition at line 62 of file oxutilsfile.php.
| oxUtilsFile.deleteDir | ( | $ | sSourceDir | ) |
Deletes directory tree.
| string | $sSourceDir Path to directory |
Definition at line 97 of file oxutilsfile.php.
| oxUtilsFile.readRemoteFileAsString | ( | $ | sPath | ) |
Reads remote stored file. Returns contents of file.
| string | $sPath Remote file path & name |
Definition at line 128 of file oxutilsfile.php.
| oxUtilsFile.processFiles | ( | $ | oObject = null |
) |
Uploaded file processor (filters, etc), sets configuration parameters to passed object and returns it.
| object | $oObject object, that parameters are modified according to passed files |
Definition at line 152 of file oxutilsfile.php.
| oxUtilsFile.checkFile | ( | $ | sFile | ) |
Checks if passed file exists and may be opened for reading. Returns true on success.
| string | $sFile Name of file to check |
Definition at line 423 of file oxutilsfile.php.
| oxUtilsFile.urlValidate | ( | $ | sLink | ) |
Checks if given URL is accessible (HTTP-Code: 200)
| string | $sLink given link |
Definition at line 456 of file oxutilsfile.php.
| oxUtilsFile.handleUploadedFile | ( | $ | aFileInfo, | |
| $ | sUploadPath | |||
| ) |
Handles uploaded path. Returns new URL to the file
| array | $aFileInfo Global $_FILE parameter info | |
| string | $sUploadPath RELATIVE (to config sShopDir parameter) path for uploaded file to be copied |
| oxException | if file is not valid |
Definition at line 507 of file oxutilsfile.php.
oxUtilsFile.$_instance = null [static, private] |
Definition at line 13 of file oxutilsfile.php.
1.5.5