tasks/system/AdhocTask.php

Show: inherited
Table of Contents

Abstract class for creating adhoc Phing components in buildfile.

By itself this class can be used to declare a single class within your buildfile. You can then reference this class in any task that takes custom classes (selectors, mappers, filters, etc.)

Subclasses exist for conveniently declaring and registering tasks and types.

Author
Hans Lellelid  
Package
phing.tasks.system  
Version
$Revision: 526 $  

\AdhocTask

Package: phing\tasks\system

Abstract class for creating adhoc Phing components in buildfile.

By itself this class can be used to declare a single class within your buildfile. You can then reference this class in any task that takes custom classes (selectors, mappers, filters, etc.)

Subclasses exist for conveniently declaring and registering tasks and types.

Parent(s)
\Task < \ProjectComponent
Children
\AdhocTaskdefTask
\AdhocTypedefTask
Author
Hans Lellelid  
Version
$Revision: 526 $  

Properties

Propertyprotected  $newClasses= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotectedstring  $script= ''

The PHP script

Details
Type
string

Methods

methodpublicaddText( string $script ) : void

Set the script.

Parameters
Name Type Description
$script string
methodprotectedexecute( ) : string

Load the adhoc class, and perform any core validation.

Returns
Type Description
string The classname of the ProjectComponent class.
Throws
Exception Description
\BuildException - if more than one class is defined.
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodprotectedgetNewClasses( ) : array

Get array of names of newly defined classes.

Returns
Type Description
array
methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Main entry point

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.