classes/phing/tasks/ext/phpdoc/PhpDocumentorTask.php
\PhpDocumentorTask
Task to run PhpDocumentor.
Use {@link Project#createTask} to register a new Task.
- Extends from
- \Task
- author
- Hans Lellelid
- author
- Michiel Rook
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext.phpdoc
- version
- $Id: PhpDocumentorTask.php 1101 2011-05-18 17:49:55Z mrook $
Properties

\PhingFile
$configDir= ''
Directory in which to look for configuration files.
- Type
- \PhingFile

string
$customtags= ''
custom tags, will be recognized and put in tags[] instead of unknowntags[].
- Type
- string

array
$filesets= 'array'
FileSet[] Filesets for files to parse.
arrayDetails- Type
- array

boolean
$javadocDesc= 'false'
Whether to use javadoc descriptions (more primitive).
falseDetails- Type
- boolean

boolean
$linksource= 'false'
Whether to generate sourcecode for each file parsed.
falseDetails- Type
- boolean

boolean
$parsePrivate= 'false'
Whether to parse private members.
falseDetails- Type
- boolean

boolean
$pear= 'false'
Whether to parse as a PEAR repository.
falseDetails- Type
- boolean

array
$projDocFilesets= 'array'
FileSet[] Project documentation (README/INSTALL/CHANGELOG) files.
arrayDetails- Type
- array
Methods

createProjdocfileset(
)
:
\FileSetCreates a readme/install/changelog fileset.
| Type | Description |
|---|---|
| \FileSet |

findPhpDocumentorInstall(
)
:
Searches include_path for PhpDocumentor install and adjusts include_path appropriately.
- throws
- - if unable to find PhpDocumentor on include_path

main(
)
:
Main entrypoint of the task
Loads the necessary environment for running PhpDoc, then runs PhpDoc
- throws
- - if the phpdoc classes can't be loaded.

setConfigdir(
\PhingFile $d
)
:
Set a directory to search for configuration files in.
| Name | Type | Description |
|---|---|---|
| $d | \PhingFile |

setCustomtags(
string $sCustomtags
)
:
custom tags, will be recognized and put in tags[] instead of
unknowntags[].
| Name | Type | Description |
|---|---|---|
| $sCustomtags | string |

setDefaultcategoryname(
string $name
)
:
Sets the default category name.
| Name | Type | Description |
|---|---|---|
| $name | string |

setDefaultpackagename(
string $name
)
:
Sets the default package name.
| Name | Type | Description |
|---|---|---|
| $name | string |

setDestdir(
$destdir
)
:
Set the destination directory for the generated documentation
| Name | Type | Description |
|---|---|---|
| $destdir |

setExamplesdir(
\PhingFile $d
)
:
Set a directory to search for examples in.
| Name | Type | Description |
|---|---|---|
| $d | \PhingFile |

setIgnoretags(
string $tags
)
:
Set (comma-separated) list of tags to ignore.
| Name | Type | Description |
|---|---|---|
| $tags | string |

setJavadocdesc(
$javadoc
)
:
Whether to use javadoc descriptions (more primitive).
| Name | Type | Description |
|---|---|---|
| $javadoc | boolean |

setLinksource(
$b
)
:
Set whether to generate sourcecode for each file parsed
| Name | Type | Description |
|---|---|---|
| $b | boolean |

setOutput(
string $output
)
:
Set the output format (e.g. HTML:Smarty:PHP).
| Name | Type | Description |
|---|---|---|
| $output | string |

setPackageoutput(
string $packages
)
:
Set (comma-separated) list of packages to output.
| Name | Type | Description |
|---|---|---|
| $packages | string |

setParseprivate(
$parseprivate
)
:
Should private members/classes be documented
| Name | Type | Description |
|---|---|---|
| $parseprivate | boolean |

setPear(
boolean $b
)
:
Set whether to parse as PEAR repository.
| Name | Type | Description |
|---|---|---|
| $b | boolean |

setPhpDocumentorOptions(
\PhingPhpDocumentorSetup $phpdoc
)
:
Sets the options on the passed-in phpdoc setup object.
| Name | Type | Description |
|---|---|---|
| $phpdoc | \PhingPhpDocumentorSetup |

setQuiet(
boolean $b
)
:
Set whether to suppress output.
| Name | Type | Description |
|---|---|---|
| $b | boolean |

setSourcecode(
$b
)
:
Set whether to generate sourcecode for each file parsed
| Name | Type | Description |
|---|---|---|
| $b | boolean |

setTarget(
$destdir
)
:
Alias for {@link setDestdir()}.
| Name | Type | Description |
|---|---|---|
| $destdir |
- see
- \setDestdir()

setTemplateBase(
$oTemplateBase
)
:
Set base location of all templates for this parse.
| Name | Type | Description |
|---|---|---|
| $oTemplateBase |

setTitle(
$title
)
:
Set the title for the generated documentation
| Name | Type | Description |
|---|---|---|
| $title |

setUndocumentedelements(
boolean $b
)
:
Control whether or not warnings will be shown for undocumented elements.
Useful for identifying classes and methods that haven't yet been documented.
| Name | Type | Description |
|---|---|---|
| $b | boolean |