[ Index ] |
|
Code source de eZ Publish 3.9.0 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 545 lignes (16 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 6 fichiers lib/ezfile/classes/ezdir.php lib/ezfile/classes/ezfilehandler.php lib/ezutils/classes/ezmimetype.php lib/ezutils/classes/ezlog.php lib/ezutils/classes/ezdebugsetting.php lib/ezfile/classes/ezfile.php |
eZFSFileHandler:: (27 méthodes):
eZFSFileHandler()
loadMetaData()
fileFetch()
fetch()
fileStore()
fileStoreContents()
storeContents()
fileFetchContents()
fetchContents()
stat()
size()
mtime()
name()
fileDeleteByRegex()
fileDeleteByWildcard()
fileDeleteByDirList()
fileDelete()
delete()
fileDeleteLocal()
deleteLocal()
fileExists()
exists()
passthrough()
fileCopy()
fileLinkCopy()
fileMove()
move()
Classe: eZFSFileHandler - X-Ref
eZFSFileHandler( $filePath = false ) X-Ref |
Constructor. $filePath File path. If specified, file metadata is fetched in the constructor. |
loadMetaData() X-Ref |
Pas de description |
fileFetch( $filePath ) X-Ref |
Fetches file from db and saves it in FS under the same name. In case of fetching from filesystem does nothing. \public \static |
fetch() X-Ref |
Fetches file from db and saves it in FS under the same name. In case of fetching from filesystem does nothing. \public |
fileStore( $filePath, $scope = false, $delete = false, $datatype = false ) X-Ref |
Store file. In case of storing to filesystem does nothing. \public \static \param $filePath Path to the file being stored. \param $scope Means something like "file category". May be used to clean caches of a certain type. \param $delete true if the file should be deleted after storing. |
fileStoreContents( $filePath, $contents, $scope = false, $datatype = false ) X-Ref |
Store file contents. \public \static |
storeContents( $contents, $scope = false, $datatype = false ) X-Ref |
Store file contents. \public \static |
fileFetchContents( $filePath ) X-Ref |
Returns file contents. \public \static \return contents string, or false in case of an error. |
fetchContents() X-Ref |
Returns file contents. \public \return contents string, or false in case of an error. |
stat() X-Ref |
Returns file metadata. \public |
size() X-Ref |
Returns file size. \public |
mtime() X-Ref |
Returns file modification time. \public |
name() X-Ref |
Returns file name. \public |
fileDeleteByRegex( $dir, $fileRegex ) X-Ref |
Delete files matching regex $fileRegex under directory $dir. \public \static \sa fileDeleteByWildcard() |
fileDeleteByWildcard( $wildcard ) X-Ref |
Delete files matching given wildcard. Note that this method is faster than fileDeleteByRegex(). \public \static \sa fileDeleteByRegex() |
fileDeleteByDirList( $dirList, $commonPath, $commonSuffix ) X-Ref |
Delete files located in a directories from dirList, with common prefix specified by commonPath, and common suffix with added wildcard at the end \public \static \sa fileDeleteByRegex() |
fileDelete( $path ) X-Ref |
\public \static |
delete() X-Ref |
Deletes specified file/directory. If a directory specified it is deleted recursively. \public \static |
fileDeleteLocal( $path ) X-Ref |
Deletes a file that has been fetched before. In case of fetching from filesystem does nothing. \public \static |
deleteLocal() X-Ref |
Deletes a file that has been fetched before. In case of fetching from filesystem does nothing. \public |
fileExists( $path ) X-Ref |
Check if given file/dir exists. \public \static |
exists() X-Ref |
Check if given file/dir exists. NOTE: this function does not interact with filesystem. Instead, it just returns existance status determined in the constructor. \public |
passthrough() X-Ref |
Outputs file contents prepending them with appropriate HTTP headers. \public |
fileCopy( $srcPath, $dstPath ) X-Ref |
Copy file. \public \static |
fileLinkCopy( $srcPath, $dstPath, $symLink ) X-Ref |
Create symbolic or hard link to file. \public \static |
fileMove( $srcPath, $dstPath ) X-Ref |
Move file. \public \static |
move( $dstPath ) X-Ref |
Move file. \public |
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |