| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 288 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ap_download:: (7 methods):
process()
html()
download()
find_folders()
decompress()
guess_archive()
dircopy()
Class: ap_download - X-Ref
| process() X-Ref |
| Initiate the plugin download |
| html() X-Ref |
| Print results of the download |
| download($url, $overwrite=false) X-Ref |
| Process the downloaded file |
| find_folders(&$result,$base,$dir='') X-Ref |
| Find out what was in the extracted directory Correct folders are searched recursively using the "*.info.txt" configs as indicator for a root folder. When such a file is found, it's base setting is used (when set). All folders found by this method are stored in the 'new' key of the $result array. For backwards compatibility all found top level folders are stored as in the 'old' key of the $result array. When no items are found in 'new' the copy mechanism should fall back the 'old' list. author: Andreas Gohr <andi@splitbrain.org> param: arrayref $result - results are stored here param: string $base - the temp directory where the package was unpacked to param: string $dir - a subdirectory. do not set. used by recursion return: bool - false on error |
| decompress($file, $target) X-Ref |
| Decompress a given file to the given target directory Determines the compression type from the file extension |
| guess_archive($file) X-Ref |
| Determine the archive type of the given file Reads the first magic bytes of the given file for content type guessing, if neither bz, gz or zip are recognized, tar is assumed. returns: boolean|string false if the file can't be read, otherwise an "extension" author: Andreas Gohr <andi@splitbrain.org> |
| dircopy($src, $dst) X-Ref |
| Copy with recursive sub-directory support |
| Generated: Sun Jan 19 03:00:05 2014 | Cross-referenced by PHPXref 0.7 |