$visitor
$visitor : \phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\Visitors\Discover
Directive used to process `.
. figure::` and collect images as assets to be copied.
The filenames of the images are taken from the directive and added onto the assets collection during the discovery phase. These assets may then be copied to the destination location by the invoker.
$visitor : \phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\Visitors\Discover
toDocbook(\DOMDocument $document, \DOMElement $root) : void
Converts the Image directive to aDocBook image tag.
This method takes an image directive and converts it into its DocBook representation and stores a reference in the Asset manager of the Converter.
\DOMDocument | $document | |
\DOMElement | $root |
toXhtml(\DOMDocument $document, \DOMElement $root) : void
Converts the Image directive to an <img/> tag.
This method takes an image directive and converts it into its HTML representation and stores a reference in the Asset manager of the Converter.
\DOMDocument | $document | |
\DOMElement | $root |
storeAsset() : void
Stores the asset in the asset manager.
This method takes an asset defined in the directive and stores that in the asset manager.
The following rules apply:
The source of the asset is the relative path of the asset prefixed with a path based on the following rules:
the destination of the asset is the path relative to the project root.
../
patterns in the mean time).getAssetManager() : \phpDocumentor\Plugin\Scrybe\Converter\Metadata\Assets
Returns the asset manager.