phing-tasks-system
[ class tree: phing-tasks-system ] [ index: phing-tasks-system ] [ all elements ]

Class: XsltTask

Source Location: /tasks/system/XsltTask.php

Class Overview

ProjectComponent
   |
   --Task
      |
      --CopyTask
         |
         --XsltTask

Implements an XSLT processing filter while copying files.


Author(s):

  • Andreas Aderhold, andi@binarycloud.com

Version:

  • $Id: XsltTask.php 526 2009-08-11 12:11:17Z mrook $

Copyright:

  • � 2001,2002 THYRELL. All rights reserved

Methods


Inherited Variables

Inherited Methods

Class: CopyTask

CopyTask::__construct()
Sets up this object internal stuff. i.e. the Fileutils instance
CopyTask::createFileList()
Nested creator, adds a set of files (nested fileset attribute).
CopyTask::createFileSet()
Nested creator, creates a FileSet for this task
CopyTask::createFilterChain()
Creates a filterchain
CopyTask::createMapper()
Nested creator, creates one Mapper for this task
CopyTask::doWork()
Actually copies the files
CopyTask::main()
The main entry point where everything gets in motion.
CopyTask::setFile()
Set the file. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
CopyTask::setIncludeEmptyDirs()
Set the include empty dirs flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
CopyTask::setMode()
Sets the mode to create destination directories with (ignored on Windows).
CopyTask::setOverwrite()
Set the overwrite flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
CopyTask::setTodir()
Set the toDir. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
CopyTask::setTofile()
Set the toFile. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary.
CopyTask::setTstamp()
Set the preserve timestmap flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here.
CopyTask::setVerbose()
Used to force listing of all names of copied files.
CopyTask::validateAttributes()
Validates attributes coming in from XML

Class: Task

Task::getDescription()
Returns the textual description of the task
Task::getLocation()
Returns the location within the buildfile this task occurs. Used by BuildException to give detailed error messages.
Task::getOwningTarget()
Returns the owning target of this task.
Task::getRegisterSlot()
Returns a name
Task::getRuntimeConfigurableWrapper()
Returns the wrapper object for runtime configuration
Task::getTaskName()
Returns the name of task, used only for log messages
Task::getTaskType()
Returns the name of the task under which it was invoked, usually the XML tagname
Task::init()
Called by the parser to let the task initialize properly.
Task::log()
Provides a project level log event to the task.
Task::main()
Called by the project to let the task do it's work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running <em>phing target1 target2</em> will run all tasks in target3 twice.
Task::maybeConfigure()
Configure this task if it hasn't been done already.
Task::perform()
Perfrom this task
Task::setDescription()
Sets a textual description of the task
Task::setLocation()
Sets the location within the buildfile this task occurs. Called by the parser to set location information.
Task::setOwningTarget()
Sets the owning target this task belongs to.
Task::setRuntimeConfigurableWrapper()
Sets the wrapper object this task should use for runtime configurable elements.
Task::setTaskName()
Sets the name of this task for log messages
Task::setTaskType()
Sets the type of the task. Usually this is the name of the XML tag

Class: ProjectComponent

ProjectComponent::getProject()
Returns a reference to current project
ProjectComponent::log()
Logs a message with the given priority.
ProjectComponent::setProject()
References the project to the current component.

Class Details

[line 37]
Implements an XSLT processing filter while copying files.

This is a shortcut for calling the <copy> task with the XSLTFilter used in the <filterchains> section.




Tags:

author:  Andreas Aderhold, andi@binarycloud.com
version:  $Id: XsltTask.php 526 2009-08-11 12:11:17Z mrook $
copyright:  � 2001,2002 THYRELL. All rights reserved


[ Top ]


Class Methods


method createParam [line 99]

XSLTParam createParam( )

Support nested <param> tags useing XSLTParam class.



[ Top ]

method init [line 48]

void init( )

Setup the filterchains w/ XSLTFilter that we will use while copying the files.



Overrides Task::init() (Called by the parser to let the task initialize properly.)

[ Top ]

method main [line 59]

void main( )

Set any XSLT Param and invoke CopyTask::main()



Tags:



Overrides CopyTask::main() (The main entry point where everything gets in motion.)

[ Top ]

method setResolveDocumentExternals [line 80]

void setResolveDocumentExternals( bool $resolveExternals)

Whether to resolve entities in the XML document.



Tags:

since:  2.4


Parameters:

bool   $resolveExternals  

[ Top ]

method setResolveStylesheetExternals [line 91]

void setResolveStylesheetExternals( bool $resolveExternals)

Whether to resolve entities in the stylesheet.



Tags:

since:  2.4


Parameters:

bool   $resolveExternals  

[ Top ]

method setStyle [line 69]

void setStyle( $style)

Set the stylesheet to use.



Parameters:

PhingFile   $style  

[ Top ]


Documentation generated on Mon, 19 Oct 2009 10:52:26 +0200 by phpDocumentor 1.4.3