# tasks/system/TouchTask.php

## \TouchTask
jump to top

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

`$dateTime= ''`
Details

Type
  n/a

`$file= ''`
Details

Type
  n/a

`$fileUtils= ''`
Details

Type
  n/a

`$filesets= 'array()'`
Default value `array()`Details

Type
  n/a

`$millis= '-1'`
Default value`-1` Details

Type
  n/a

### Methods

`__construct( ) : void`

`_touch( ) : void`

Does the actual work.

`createFileSet( ) : \FileSet`

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

Returns

Type | Description
--- | ---
\FileSet |

`getDescription( ) : void`

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

Execute the touch operation.

`maybeConfigure( ) : void`

`perform( ) : void`

`setDatetime( $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 |  |

`setDescription( ) : void`

`setFile( $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 |  |

`setLocation( ) : void`

`setMillis( $millis ) : void`

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

Optional, default=now

Parameters

Name | Type | Description
--- | --- | ---
$millis |  |

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

`touchFile( $file ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$file |  |

Documentation was generated by DocBlox 0.17.1.