tasks/system/TouchTask.php

Show: inherited
Table of Contents

\TouchTask

Package: phing\tasks\system

Touch a file and/or fileset(s); corresponds to the Unix touch command.

If the file to touch doesn't exist, an empty one is created.

Parent(s)
\Task < \ProjectComponent
Version
$Revision: 526 $  

Properties

Propertyprivate  $dateTime= ''
Details
Type
n/a
Propertyprivate  $file= ''
Details
Type
n/a
Propertyprivate  $fileUtils= ''
Details
Type
n/a
Propertyprivate  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $millis= '-1'
Default value-1Details
Type
n/a

Methods

methodpublic__construct( ) : void

methodpublic_touch( ) : void

Does the actual work.

methodpubliccreateFileSet( ) : \FileSet

Nested creator, adds a set of files (nested fileset attribute).

Returns
Type Description
\FileSet
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Execute the touch operation.

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDatetime(  $dateTime ) : void

the new modification time of the file in the format MM/DD/YYYY HH:MM AM or PM; Optional, default=now

Parameters
Name Type Description
$dateTime
methodpublicsetDescription( ) : void

methodpublicsetFile(  $file ) : void

Sets a single source file to touch. If the file does not exist an empty file will be created.

Parameters
Name Type Description
$file
methodpublicsetLocation( ) : void

methodpublicsetMillis(  $millis ) : void

the new modification time of the file in milliseconds since midnight Jan 1 1970.

Optional, default=now

Parameters
Name Type Description
$millis
methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodprivatetouchFile(  $file ) : void

Parameters
Name Type Description
$file
Documentation was generated by DocBlox 0.17.1.