[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Support functions for the importImages.php script This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Author: | Rob Church <[email protected]> |
Author: | Mij <[email protected]> |
File Size: | 138 lines (4 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
findFiles( $dir, $exts, $recurse = false ) X-Ref |
Search a directory for files with one of a set of extensions param: string $dir Path to directory to search param: array $exts Array of extensions to search for param: bool $recurse Search subdirectories recursively return: array|bool Array of filenames on success, or false on failure |
splitFilename( $filename ) X-Ref |
Split a filename into filename and extension param: string $filename Filename return: array |
findAuxFile( $file, $auxExtension, $maxStrip = 1 ) X-Ref |
Find an auxilliary file with the given extension, matching the give base file path. $maxStrip determines how many extensions may be stripped from the original file name before appending the new extension. For example, with $maxStrip = 1 (the default), file files acme.foo.bar.txt and acme.foo.txt would be auxilliary files for acme.foo.bar and the extension ".txt". With $maxStrip = 2, acme.txt would also be acceptable. param: string $file Base path param: string $auxExtension The extension to be appended to the base path param: int $maxStrip The maximum number of extensions to strip from the base path (default: 1) return: string|bool |
getFileCommentFromSourceWiki( $wiki_host, $file ) X-Ref |
No description |
getFileUserFromSourceWiki( $wiki_host, $file ) X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |