[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
[Code source] [Imprimer] [Statistiques]
Flag for GZ compression
Poids: | 2794 lignes (589 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
PHP_Archive:: (21 méthodes):
mapPhar()
processFile()
selectFile()
_setCurrentFile()
extractFile()
initializeStream()
_unserializeManifest()
stream_open()
_streamOpen()
stream_read()
stream_eof()
stream_seek()
stream_tell()
stream_stat()
_stream_stat()
url_stat()
dir_opendir()
dir_readdir()
dir_closedir()
dir_rewinddir()
APIVersion()
Classe: PHP_Archive - X-Ref
PHP_Archive Class (implements .phar)mapPhar($file, $dataoffset) X-Ref |
Map a full real file path to an alias used to refer to the .phar This function can only be called from the initialization of the .phar itself. Any attempt to call from outside the .phar or to re-alias the .phar will fail as a security measure. param: string $file full realpath() filepath, like /path/to/go-pear.phar param: string $alias alias used in opening a file within the phar param: bool $compressed determines whether to attempt zlib uncompression param: int $dataoffset the value of __COMPILER_HALT_OFFSET__ |
processFile($path) X-Ref |
param: string |
selectFile($path, $allowdirs = true) X-Ref |
Seek in the master archive to a matching file or directory param: string |
_setCurrentFile($path) X-Ref |
Pas de description |
extractFile($path) X-Ref |
Seek to a file within the master archive, and extract its contents param: string return: array|string an array containing an error message string is returned |
initializeStream($file) X-Ref |
Locate the .phar archive in the include_path and detect the file to open within the archive. Possible parameters are phar://filename_within_phar.ext or phar://pharname.phar/filename_within_phar.ext phar://filename_within_phar.ext will simply use the last .phar opened. param: string a file within the archive return: string the filename within the .phar to retrieve |
_unserializeManifest($manifest) X-Ref |
extract the manifest into an internal array param: string $manifest return: false|array |
stream_open($file) X-Ref |
Open the requested file - PHP streams API param: string $file String provided by the Stream wrapper |
_streamOpen($file, $searchForDir = false) X-Ref |
param: string filename to opne, or directory name param: bool if true, a directory will be matched, otherwise only files return: bool success of opening |
stream_read($count) X-Ref |
Read the data - PHP streams API param: int |
stream_eof() X-Ref |
Whether we've hit the end of the file - PHP streams API |
stream_seek($pos, $whence) X-Ref |
For seeking the stream - PHP streams API param: int param: SEEK_SET|SEEK_CUR|SEEK_END |
stream_tell() X-Ref |
The current position in the stream - PHP streams API |
stream_stat() X-Ref |
The result of an fstat call, returns mod time from creation, and file size - PHP streams API |
_stream_stat($file = null) X-Ref |
Retrieve statistics on a file or directory within the .phar param: string file/directory to stat |
url_stat($url, $flags) X-Ref |
Stat a closed file or directory - PHP streams API param: string param: int |
dir_opendir($path) X-Ref |
Open a directory in the .phar for reading - PHP streams API param: string directory name |
dir_readdir() X-Ref |
Read the next directory entry - PHP streams API |
dir_closedir() X-Ref |
Close a directory handle opened with opendir() - PHP streams API |
dir_rewinddir() X-Ref |
Rewind to the first directory entry - PHP streams API |
APIVersion() X-Ref |
API version of this class return: string |
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |