Class responsible for writing the results of the Reflection of a single source file to disk.

category phpDocumentor
package Parser\Exporter
author Mike van Riel
license MIT
link http://phpdoc.org

 Methods

Construct the object with the location where to write the structure file(s).

__construct(phpDocumentor_Parser $parser) 

Parameters

Dispatches a logging request to log a debug message.

debug(string $message) : void
Inherited

inherited_from \phpDocumentor_Parser_Abstract::debug()

Parameters

$message

string

The message to log.

Dispatches an event to the Event Dispatcher.

dispatch(string $name, \string[] $arguments) : mixed | null
Inherited

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()

Parameters

$name

string

Name of the event to dispatch.

$arguments

\string[]

Arguments for this event.

Exceptions

\phpDocumentor_Parser_Exception if there is a dispatcher but it is not of type sfEventDispatcher

Returns

mixednull

Renders the reflected file to a structure file.

export(phpDocumentor_Reflection_File $file) : void

Parameters

$file

\phpDocumentor_Reflection_File

File to export.

Finalizes this exporter; performs cleaning operations.

finalize() : void

Returns the contents of this export or null if contents were directly written to disk.

getContents() : string | null

Returns

stringnull

Initializes this exporter.

initialize() : void

Dispatches a logging request.

log(string $message, int $priority) : void
Inherited

inherited_from \phpDocumentor_Parser_Abstract::log()

Parameters

$message

string

The message to log.

$priority

int

The logging priority, the lower, the more important. Ranges from 1 to 7

Sets whether to include the source in the structure files.

setIncludeSource(boolean $include_source) 

Parameters

$include_source

boolean

 Properties

 

The event dispatcher object, may be null to not dispatch events.

$event_dispatcher : \sfEventDispatcher | null
Inherited

inherited_from \phpDocumentor_Parser_Abstract::$$event_dispatcher
 

<p>Whether to include the file's source in the export</p>

$include_source : bool

 

$parser

$parser : \phpDocumentor_Parser