tasks/system/TstampTask.php

Show: inherited
Table of Contents

Sets properties to the current time, or offsets from the current time.

The default properties are TSTAMP, DSTAMP and TODAY;

Based on Ant's Tstamp task.

Author
Michiel Rook  
Package
phing.tasks.system  
Since
2.2.0  
Version
$Revision: 557 $  

\TstampCustomFormat

Package: phing\tasks\system

Properties

Propertyprivate  $locale= '""'
Default value""Details
Type
n/a
Propertyprivate  $pattern= '""'
Default value""Details
Type
n/a
Propertyprivate  $propertyName= '""'
Default value""Details
Type
n/a

Methods

methodpublicexecute( \TstampTask $tstamp ) : void

validate parameter and execute the format.

Parameters
Name Type Description
$tstamp \TstampTask

reference to task

methodpublicsetLocale(  $locale ) : void

The locale used to create date/time string.

Parameters
Name Type Description
$locale

locale

methodpublicsetPattern(  $pattern ) : void

The date/time pattern to be used. The values are as defined by the PHP strftime() function.

Parameters
Name Type Description
$pattern

pattern

methodpublicsetProperty( \propertyName $propertyName ) : void

The property to receive the date/time string in the given pattern

Parameters
Name Type Description
$propertyName \propertyName

the name of the property.

\TstampTask

Package: phing\tasks\system

Sets properties to the current time, or offsets from the current time.

The default properties are TSTAMP, DSTAMP and TODAY;

Based on Ant's Tstamp task.

Parent(s)
\Task < \ProjectComponent
Author
Michiel Rook  
Since
2.2.0  
Version
$Revision: 557 $  

Properties

Propertyprivate  $customFormats= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $prefix= '""'
Default value""Details
Type
n/a

Methods

methodpublicaddFormat( \TstampCustomFormat $cf ) : void

Adds a custom format

Parameters
Name Type Description
$cf \TstampCustomFormat

custom format

methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Create the timestamps. Custom ones are done before the standard ones.

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicprefixProperty(  $name,  $value ) : void

helper that encapsulates prefix logic and property setting policy (i.e. we use setNewProperty instead of setProperty).

Parameters
Name Type Description
$name
$value
methodpublicsetDescription( ) : void

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPrefix( \prefix $prefix ) : void

Set a prefix for the properties. If the prefix does not end with a "." one is automatically added.

Parameters
Name Type Description
$prefix \prefix

the prefix to use.

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.