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

Propertyprotected\PhingFile  $configDir= ''

Directory in which to look for configuration files.
Details
Type
\PhingFile
Propertyprotectedstring  $customtags= ''

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

Default category name.
Details
Type
string
Propertyprotectedstring  $defaultPackageName= ''

Default package name.
Details
Type
string
Propertyprotected\PhingFile  $destdir= ''

The target directory for output files.
Details
Type
\PhingFile
Propertyprotected\PhingFile  $examplesDir= ''

Directory in which to look for examples.
Details
Type
\PhingFile
Propertyprotectedarray  $filesets= 'array'

FileSet[] Filesets for files to parse.
Default valuearrayDetails
Type
array
Propertyprotectedstring  $ignore= ''

files to ignore
Details
Type
string
Propertyprotectedstring  $ignoreTags= ''

Comma-separated list of tags to ignore.
Details
Type
string
Propertyprotectedboolean  $javadocDesc= 'false'

Whether to use javadoc descriptions (more primitive).
Default valuefalseDetails
Type
boolean
Propertyprotectedboolean  $linksource= 'false'

Whether to generate sourcecode for each file parsed.
Default valuefalseDetails
Type
boolean
Propertyprotectedstring  $output= ''

Package output format.
Details
Type
string
Propertyprotectedstring  $packages= ''

Comma-separated list of packages to output.
Details
Type
string
Propertyprotectedboolean  $parsePrivate= 'false'

Whether to parse private members.
Default valuefalseDetails
Type
boolean
Propertyprotectedboolean  $pear= 'false'

Whether to parse as a PEAR repository.
Default valuefalseDetails
Type
boolean
Propertyprotectedarray  $projDocFilesets= 'array'

FileSet[] Project documentation (README/INSTALL/CHANGELOG) files.
Default valuearrayDetails
Type
array
Propertyprotectedboolean  $quiet= 'false'

Wheter to suppress output.
Default valuefalseDetails
Type
boolean
Propertyprotected\PhingFile  $templateBase= ''

Base directory for locating template files.
Details
Type
\PhingFile
Propertyprotectedstring  $title= ''

Title for browser window / package index.
Details
Type
string
Propertyprotectedboolean  $undocumentedelements= 'false'

Control whether or not warnings will be shown for undocumented elements. Useful for identifying classes and methods that haven't yet been documented.
Default valuefalseDetails
Type
boolean

Methods

methodpublic  createFileset( ) : \FileSet
Creates a FileSet.
Returns
Type Description
\FileSet
methodpublic  createProjdocfileset( ) : \FileSet
Creates a readme/install/changelog fileset.
Returns
Type Description
\FileSet
methodprotected  findPhpDocumentorInstall( ) :
Searches include_path for PhpDocumentor install and adjusts include_path appropriately.
Details
throws
- if unable to find PhpDocumentor on include_path
methodpublic  main( ) :
Main entrypoint of the task Loads the necessary environment for running PhpDoc, then runs PhpDoc
Details
throws
- if the phpdoc classes can't be loaded.
methodpublic  setConfigdir( \PhingFile $d ) :
Set a directory to search for configuration files in.
Parameters
Name Type Description
$d \PhingFile
methodpublic  setCustomtags( string $sCustomtags ) :
custom tags, will be recognized and put in tags[] instead of unknowntags[].
Parameters
Name Type Description
$sCustomtags string
methodpublic  setDefaultcategoryname( string $name ) :
Sets the default category name.
Parameters
Name Type Description
$name string
methodpublic  setDefaultpackagename( string $name ) :
Sets the default package name.
Parameters
Name Type Description
$name string
methodpublic  setDestdir(  $destdir ) :
Set the destination directory for the generated documentation
Parameters
Name Type Description
$destdir
methodpublic  setExamplesdir( \PhingFile $d ) :
Set a directory to search for examples in.
Parameters
Name Type Description
$d \PhingFile
methodpublic  setIgnore( string $sIgnore ) :
Set files to ignore
Parameters
Name Type Description
$sIgnore string
methodpublic  setIgnoretags( string $tags ) :
Set (comma-separated) list of tags to ignore.
Parameters
Name Type Description
$tags string
methodpublic  setJavadocdesc(  $javadoc ) :
Whether to use javadoc descriptions (more primitive).
Parameters
Name Type Description
$javadoc boolean
methodpublic  setLinksource(  $b ) :
Set whether to generate sourcecode for each file parsed
Parameters
Name Type Description
$b boolean
methodpublic  setOutput( string $output ) :
Set the output format (e.g. HTML:Smarty:PHP).
Parameters
Name Type Description
$output string
methodpublic  setPackageoutput( string $packages ) :
Set (comma-separated) list of packages to output.
Parameters
Name Type Description
$packages string
methodpublic  setParseprivate(  $parseprivate ) :
Should private members/classes be documented
Parameters
Name Type Description
$parseprivate boolean
methodpublic  setPear( boolean $b ) :
Set whether to parse as PEAR repository.
Parameters
Name Type Description
$b boolean
methodprotected  setPhpDocumentorOptions( \PhingPhpDocumentorSetup $phpdoc ) :
Sets the options on the passed-in phpdoc setup object.
Parameters
Name Type Description
$phpdoc \PhingPhpDocumentorSetup
methodpublic  setQuiet( boolean $b ) :
Set whether to suppress output.
Parameters
Name Type Description
$b boolean
methodpublic  setSourcecode(  $b ) :
Set whether to generate sourcecode for each file parsed
Parameters
Name Type Description
$b boolean
methodpublic  setTarget(  $destdir ) :
Alias for {@link setDestdir()}.
Parameters
Name Type Description
$destdir
Details
see
\setDestdir()
methodpublic  setTemplateBase(  $oTemplateBase ) :
Set base location of all templates for this parse.
Parameters
Name Type Description
$oTemplateBase
methodpublic  setTitle(  $title ) :
Set the title for the generated documentation
Parameters
Name Type Description
$title
methodpublic  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.

Parameters
Name Type Description
$b boolean
methodprotected  validate( ) :
Validates that necessary minimum options have been set.
Details
throws
if validation doesn't pass
Documentation was generated by DocBlox 0.13.1.