reStructuredText rendering task for Phing, the PHP build tool.
PHP version 5
| category |
Tasks |
|---|---|
| package |
phing.tasks.ext |
| author |
Christian Weiske cweiske@cweiske.de |
| license |
LGPL v3 or later http://www.gnu.org/licenses/lgpl.html |
| link |
http://www.phing.info/ |
__construct() : object
| access |
public |
|---|
objectThe rSTTask instance
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
| throws |
|---|
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
render(string $tool, string $source, string $targetFile) : void
stringconversion tool to use
stringrST source file
stringtarget file name
renderFile(string $tool, string $source, string $targetFile) : void
| throws |
When the conversion fails |
|---|
stringconversion tool to use
stringrST source file
stringtarget file name
getToolPath(string $format) : string
| throws |
When the tool cannot be found |
|---|
stringOutput format
stringFull path to rst2$format
getTargetFile(string $file, string $destination = null) : string
| uses |
|---|
stringInput file
stringDestination file or directory name, may be null
stringTarget file name
setFile(string $file) : void
stringPath of file to render
setFormat(string $format) : void
| throws |
When the format is not supported |
|---|
stringOutput format
setDestination(string $destination) : void
stringOutput file or directory. When it ends with a slash, it is taken as directory.
setToolparam(string $param) : void
stringAdditional rst2* tool parameters
setToolpath($path) : void
| throws |
When the tool does not exist or is not executable |
|---|
setUptodate(string $uptodate) : void
stringTrue/false
addFileset(\FileSet $fileset) : void
createMapper() : \Mapper
createFilterChain() : \FilterChain
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
stringName of this task
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe text description of the task
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
taskName : string
| var |
|---|
string
format : string
| see |
for all possible options |
|---|---|
| var |
string
supportedFormats : array
| var | |
|---|---|
| see |
array
targetExt : array
| var |
|---|
array
file : string
Required
| var |
|---|
string
toolParam : string
| var |
|---|
string
toolPath : string
| var |
|---|
string
destination : string
When it ends with a slash, it is considered to be a directory
| var |
|---|
string
filesets :
mapperElement :
filterChains : array
| var |
|---|
array
mode : integer
| var |
|---|
integer
uptodate : boolean
| var |
|---|
boolean
description : string
| var |
|---|
string
taskType : string
| var |
|---|
string
project : \Project