tasks/system/ChmodTask.php

Show: inherited
Table of Contents

\ChmodTask

Package: phing\tasks\system

Task that changes the permissions on a file/directory.

Parent(s)
\Task < \ProjectComponent
Author
Manuel Holtgrewe  
Author
Hans Lellelid  
Version
$Revision: 552 $  

Properties

Propertyprivate  $failonerror= 'true'
Default valuetrueDetails
Type
n/a
Propertyprivate  $file= ''
Details
Type
n/a
Propertyprivate  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $filesystem= ''
Details
Type
n/a
Propertyprivate  $mode= ''
Details
Type
n/a
Propertyprivate  $quiet= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $verbose= 'true'
Default valuetrueDetails
Type
n/a

Methods

methodprivatecheckParams( ) : void

Ensure that correct parameters were passed in.

methodprivatechmod( ) : void

Does the actual work.

methodprivatechmodFile( \PhingFile $file, int $mode ) : void

Actually change the mode for the file.

Parameters
Name Type Description
$file \PhingFile
$mode int
methodpubliccreateFileSet( ) : void

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

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

methodpublicsetDescription( ) : void

methodpublicsetFailonerror(  $bool ) : void

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

Parameters
Name Type Description
$bool
Details
See
\setQuiet()  
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

methodpublicsetMode(  $str ) : void

Parameters
Name Type Description
$str
methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetQuiet(  $bool ) : void

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

Parameters
Name Type Description
$bool
Details
See
\setFailonerror()  
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetVerbose(  $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.