classes/phing/tasks/system/ChmodTask.php

\ChmodTask

Task that changes the permissions on a file/directory.

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
author
Manuel Holtgrewe
author
Hans Lellelid
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.system
version
$Revision: 552 $

Properties

Propertyprivate  $failonerror= 'true'
Default valuetrueDetails
Type
Propertyprivate  $file= ''
Details
Type
Propertyprivate  $filesets= 'array'
Default valuearrayDetails
Type
Propertyprivate  $filesystem= ''
Details
Type
Propertyprivate  $mode= ''
Details
Type
Propertyprivate  $quiet= 'false'
Default valuefalseDetails
Type
Propertyprivate  $verbose= 'true'
Default valuetrueDetails
Type

Methods

methodprivate  checkParams( ) : void
Ensure that correct parameters were passed in.
methodprivate  chmod( ) : void
Does the actual work.
methodprivate  chmodFile( \PhingFile $file, int $mode ) :
Actually change the mode for the file.
Parameters
Name Type Description
$file \PhingFile
$mode int
methodpublic  createFileSet( ) :
Nested creator, adds a set of files (nested fileset attribute).
methodpublic  main( ) : void
Execute the touch operation.
methodpublic  setFailonerror(  $bool ) :
This flag means 'note errors to the output, but keep going'
Parameters
Name Type Description
$bool
Details
see
\setQuiet()
methodpublic  setFile(  $file ) :
Sets a single source file to touch. If the file does not exist an empty file will be created.
Parameters
Name Type Description
$file
methodpublic  setMode(  $str ) :
Parameters
Name Type Description
$str
methodpublic  setQuiet(  $bool ) :
Set quiet mode, which suppresses warnings if chmod() fails.
Parameters
Name Type Description
$bool
Details
see
\setFailonerror()
methodpublic  setVerbose(  $bool ) :
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.13.1.