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 |
---|
object
the Project instance this configurator should use
object
the buildfile object the parser should use
addText(object $project, object $target, string $text)
access | public |
---|
object
the project this element belongs to
object
the element to configure
string
the element's #CDATA
configure(object $target, array $attrs, \Project $project)
access | public |
---|
object
the element to configure
array
the element's attributes
object
the project this element belongs to
\Exception |
if arguments are not valid |
---|---|
\BuildException |
if attributes can not be configured |
configureId(object $target, array $attr)
object
the element's object
array
the element's attributes
configureProject(\Project $project, \PhingFile $buildFile)
Use this to configure a project. Do not use the new operator.
access | public |
---|
object
the Project instance this configurator should use
object
the buildfile object the parser should use
delayTaskUntilParseEnd(\Task $task)
getBuildFile() : \the
\the
build file to which the xml context belongsgetBuildFileParent() : \the
\the
parent build file of this build filegetCurrentProjectName() : \current
\current
project namegetCurrentTargets()
isIgnoringProjectTag() : \whether
\whether
the project tag is being ignoredisParsing()
replaceProperties(\Project $project, string $value, array $keys, integer $logLevel) : string
This method is static.
object
the project that should be used for property look-ups
string
the string to be scanned for property references
array
property keys
integer
the level of generated log messages
string
the replaced string or null
if the string
itself was nullsetCurrentProjectName(\name $name)
\name
name of the current project
setIgnoreProjectTag(\flag $flag)
\flag
to ignore the project tag
storeChild(object $project, object $parent, object $child, string $tag)
access | public |
---|
object
the project this element belongs to
object
the parent element
object
the child element
string
the 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