# tasks/system/ChownTask.php

## \ChownTask
jump to top

Package: phing\tasks\system

Task that changes the permissions on a file/directory.

Parent(s)
  \Task < \ProjectComponent
Author
  Mehmet Emre Yilmaz
Version
  $Revision: 1368 $

### Properties

`$failonerror= 'true'`
Default value `true` Details

Type
  n/a

`$file= ''`
Details

Type
  n/a

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

Type
  n/a

`$filesystem= ''`
Details

Type
  n/a

`$group= ''`
Details

Type
  n/a

`$quiet= 'false'`
Default value `false` Details

Type
  n/a

`$user= ''`
Details

Type
  n/a

`$verbose= 'true'`
Default value `true` Details

Type
  n/a

### Methods

`checkParams( ) : void`

Ensure that correct parameters were passed in.

`chown( ) : void`

Does the actual work.

`chownFile( \PhingFile $file, string $user, string $group = "" ) : void`

Actually change the mode for the file.

Parameters

Name | Type | Description
--- | --- | ---
$file | \PhingFile |
$user | string |
$group | string |

`createFileSet( ) : void`

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

`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`

`setDescription( ) : void`

`setFailonerror( $bool ) : void`

This flag means 'note errors to the output, but keep going'

Parameters

Name | Type | Description
--- | --- | ---
$bool |  |

Details

See
  \setQuiet()

`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 |  |

`setGroup( $group ) : void`

Sets the group

Parameters

Name | Type | Description
--- | --- | ---
$group |  |

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setQuiet( $bool ) : void`

Set quiet mode, which suppresses warnings if chown() fails.

Parameters

Name | Type | Description
--- | --- | ---
$bool |  |

Details

See
  \setFailonerror()

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

`setUser( $user ) : void`

Sets the user

Parameters

Name | Type | Description
--- | --- | ---
$user |  |

`setVerbose( $bool ) : void`

Set verbosity, which if set to false surpresses all but an overview of what happened.

Parameters

Name | Type | Description
--- | --- | ---
$bool |  |

Documentation was generated by DocBlox 0.17.1.