creates an array $this->phpDocOptions and sets program options in it.
Array is in the format of:
[filename][tag][] = "f";
[filename][tag][] = "-file";
[filename][desc] "name of file to parse"
bool checkIgnore(
string
$file, string
$path, array
$ignore, [bool
$ignore_no_ext = true], [bool
$ignoresymlinks = false]
)
|
|
Tell whether to ignore a file or a directory allows * and ? wildcards
Parameters:
|
string |
$file: |
just the file name of the file or directory, in the case of directories this is the last dir |
|
string |
$path: |
the path to consider (should be checked by realpath() before, and may be relative) |
|
array |
$ignore: |
|
|
bool |
$ignore_no_ext: |
|
|
bool |
$ignoresymlinks: |
Ignore symlinks? |
API Tags:
| Return: | true if $path should be ignored, false if it should not |
| Usedby: | Io::getDirTree() |
Information Tags:
array dirList(
$orig_directory, [bool
$hidden = false], [bool
$ignore_symlinks = false], string
$directory
)
|
|
Parameters:
|
string |
$directory: |
full path to the directory you want the list of |
|
bool |
$hidden: |
whether to list files that begin with . like .bash_history |
|
bool |
$ignore_symlinks: |
whether to ignore symlinks |
|
|
$orig_directory: |
|
API Tags:
create the help message for display on the command-line
API Tags:
| Return: | a string containing a help message |
mixed getAllFiles(
string
$file
)
|
|
Take a filename with wildcards and return all files that match the
wildcards
Parameters:
|
string |
$file: |
a full path from the -f command-line parameter, with potential * and ? wildcards. |
API Tags:
Information Tags:
void getBase(
array
$filelist
)
|
|
Retrieve common directory (case-insensitive in windows)
takes the list of files, and returns the subdirectory they share in common, so in this list:
array(
"/dir1/dir2/subdir/dir3/filename.ext",
"/dir1/dir2/subdir/dir4/filename.ext",
"/dir1/dir2/mydir/dir5/filename.ext");
getBase will return "/dir1/dir2"
Parameters:
|
array |
$filelist: |
array of strings |
void getDirTree(
string
$dir, string
$base_dir, [array
$ignore = array()], [boolean
$hidden = false], [boolean
$ignoresymlinks = false]
)
|
|
Parameters:
|
string |
$dir: |
directory |
|
string |
$base_dir: |
base directory |
|
array |
$ignore: |
array of ignored items |
|
boolean |
$hidden: |
the "hidden" flag |
|
boolean |
$ignoresymlinks: |
the "ignoresymlinks" flag |
API Tags:
array getReadmeInstallChangelog(
string
$base, array
$filelist
)
|
|
Parameters:
API Tags:
| Return: | array(filelist - README/INSTALL/CHANGELOG, README/INSTALL/CHANGELOG) |
string getRegExpableSearchString(
string
$s
)
|
|
Converts $s into a string that can be used with preg_match
Parameters:
|
string |
$s: |
string with wildcards ? and * |
API Tags:
| Return: | converts * to .*, ? to ., etc. |
Information Tags:
array getTutorials(
array
$filelist
)
|
|
Retrieve tutorial subdirectories and their contents from the list of
files to parse
Parameters:
|
array |
$filelist: |
array of paths (strings) |
API Tags:
| Return: | array(filelist - tutorials, tutorials) |
Parses $_SERVER['argv'] and creates a setup array
API Tags:
| Return: | a setup array |
| Global: | array $argv: command-line arguments |
Information Tags:
| Todo: | replace with Console_* ? |
void readPhpFile(
string
$path, [
$quietMode = false]
)
|
|
Reads a file and returns it as a string Does basic error checking
file extensions are set in phpdoc.inc
Parameters:
|
string |
$path: |
|
|
|
$quietMode: |
|
API Tags:
| Global: | array $_phpDocumentor_cvsphpfile_exts: PHP File extensions, used to validate that $path is a PHP File |
| Global: | array $_phpDocumentor_phpfile_exts: PHP File extensions in a CVS repository, used to validate that $path is a PHP File |
string|array removeNonMatches(
array
$dir, string
$match
)
|
|
Removes files from the $dir array that do not match the search string in
$match
Parameters:
|
array |
$dir: |
array of filenames (full path) |
|
string |
$match: |
search string with wildcards |
API Tags:
| Return: | listing of every file in a directory that matches the search string |
| Usedby: | Io::getAllFiles() |
Information Tags:
void _setupIgnore(
array
$ignore
)
|
|
Construct the $ignore array
Parameters:
|
array |
$ignore: |
strings of files/paths/wildcards to ignore |
API Tags:
Information Tags: