The datatype handler class.
This class handles the occurance of registered datatype tags like FileSet
| author | Andreas Aderhold |
|---|---|
| copyright | 2001,2002 THYRELL. All rights reserved |
| version | $Id: ae9b63bef4c1423d88bb36ddfc5196763828123e $ |
| access | public |
| package | phing.parser |
__construct(\Project $project, \PhingFile $buildFile)
Use a static call to
configureProject
to configure a project.
| access | private |
|---|
objectthe Project instance this configurator should use
objectthe buildfile object the parser should use
addText(object $project, object $target, string $text)
| access | public |
|---|
objectthe project this element belongs to
objectthe element to configure
stringthe element's #CDATA
configure(object $target, array $attrs, \Project $project)
| access | public |
|---|
objectthe element to configure
arraythe element's attributes
objectthe project this element belongs to
\Exception |
if arguments are not valid |
|---|---|
\BuildException |
if attributes can not be configured |
configureId(object $target, array $attr)
objectthe element's object
arraythe element's attributes
configureProject(\Project $project, \PhingFile $buildFile)
Use this to configure a project. Do not use the new operator.
| access | public |
|---|
objectthe Project instance this configurator should use
objectthe buildfile object the parser should use
delayTaskUntilParseEnd(\Task $task)
getBuildFile() : \the
\thebuild file to which the xml context belongsgetBuildFileParent() : \the
\theparent build file of this build filegetCurrentProjectName() : \current
\currentproject namegetCurrentTargets()
isIgnoringProjectTag() : \whether
\whetherthe project tag is being ignoredisParsing()
replaceProperties(\Project $project, string $value, array $keys, integer $logLevel) : string
This method is static.
objectthe project that should be used for property look-ups
stringthe string to be scanned for property references
arrayproperty keys
integerthe level of generated log messages
stringthe replaced string or null if the string
itself was nullsetCurrentProjectName(\name $name)
\namename of the current project
setIgnoreProjectTag(\flag $flag)
\flagto ignore the project tag
storeChild(object $project, object $parent, object $child, string $tag)
| access | public |
|---|
objectthe project this element belongs to
objectthe parent element
objectthe child element
stringthe XML tagname
parse()
| access | private |
|---|
\BuildException |
if there is any kind of execption during the parsing process |
|---|
replacePropertyCallback($matches)
This method makes use of a static variable to hold the
$buildFile
$buildFileParent
$locator
$project
$currentProjectName
$currentTargets
$ignoreProjectTag
$isParsing
$parseEndTarget
$propReplaceLogLevel
$propReplaceProject
$propReplaceProperties