debug()
dispatch()
doValidation()
getDefaultPackageName()
getExistingXml()
getIgnoredTags()
getMarkers()
getRelativeFilename()
getTitle()
getVisibility()
isForced()
log()
parseFile()
parseFiles()
setDefaultPackageName()
setExistingXml()
setForced()
setIgnoredTags()
setMarkers()
setPath()
setTitle()
setValidate()
setVisibility()
$event_dispatcher
$default_package_name
$existing_xml
$exporter
$force
$ignored_tags
$markers
$path
$title
$validate
$visibility
Class responsible for parsing the given file or files to the intermediate structure file.
This class can be used to parse one or more files to the intermediate file format for further processing. Example of use: $files = new phpDocumentor_Parser_Files(); $files->addDirectories(getcwd()); $parser = new phpDocumentor_Parser(); $parser->setPath($files->getProjectRoot()); echo $parser->parseFiles($files);
| category | phpDocumentor |
|---|---|
| package | Parser |
| author | Mike van Riel |
| license | MIT |
| link | http://phpdoc.org |
debug(string $message) : void
| inherited_from | \phpDocumentor_Parser_Abstract::debug() |
|---|
stringThe message to log.
dispatch(string $name, \string[] $arguments) : mixed | null
This method tries to dispatch an event; if no Event Dispatcher has been set than this method will explicitly not fail and return null. By not failing we make the Event Dispatcher optional and is it easier for people to re-use this component in their own application.
| inherited_from | \phpDocumentor_Parser_Abstract::dispatch() |
|---|
stringName of the event to dispatch.
\string[]Arguments for this event.
\phpDocumentor_Parser_Exception |
if there is a dispatcher but it is not of type sfEventDispatcher |
|---|
mixednull
doValidation() : bool
| api |
|---|
boolgetDefaultPackageName() : string
stringgetIgnoredTags() : \string[]
| api |
|---|
\string[]getMarkers() : \string[]
| api |
|---|
\string[]getRelativeFilename(string $filename) : string
stringThe filename to make relative.
\InvalidArgumentException |
if file is not in the project root. |
|---|
stringgetTitle() : null | string
| api |
|---|
nullstring
getVisibility() : \string[]
\string[]isForced() : bool
To prevent incompatibilities we force a full rebuild if the version of phpDocumentor does not equal the structure's version.
| api |
|---|
boollog(string $message, int $priority) : void
| inherited_from | \phpDocumentor_Parser_Abstract::log() |
|---|
stringThe message to log.
intThe logging priority, the lower, the more important. Ranges from 1 to 7
parseFile(string $filename, bool $include_source) : void
| api |
|---|
stringThe filename to parse.
boolwhether to include the source in the generated output.
parseFiles(phpDocumentor_Parser_Files $files, bool $include_source) : bool | string
| api |
|---|
boolwhether to include the source in the generated output..
boolstring
setDefaultPackageName(string $default_package_name) : void
stringName used to categorize elements without an @package tag.
setExistingXml(string | null $xml) : void
| api |
|---|
stringnullXML contents if a source exists, otherwise null.
setForced(bool $forced) : void
| api |
|---|
boolForces a full parse.
setIgnoredTags(array $ignored_tags) : void
| api |
|---|
\string[]A list of tags to ignore.
setMarkers(array $markers) : void
| api |
|---|
\string[]A list or markers to gather.
setPath(string $path) : void
| api |
|---|
stringMust be an absolute path.
setTitle(string $title) : void
| api |
|---|
stringThe intended title for this project.
setValidate(bool $validate) : void
PHPLint has a huge performance impact on the execution of phpDocumentor and is thus disabled by default.
| api |
|---|
boolwhen true this file will be checked.
setVisibility(string $visibility) : void
| api |
|---|
stringComma seperated string of visibility modifiers
$event_dispatcher : \sfEventDispatcher | null
| inherited_from | \phpDocumentor_Parser_Abstract::$$event_dispatcher |
|---|
$default_package_name : string
$existing_xml : \DOMDocument | null
$force : bool
$markers : \string[]
$path : string
$title : string
$validate : bool
$visibility : array