classes/phing/tasks/system/ChownTask.php

\ChownTask

Task that changes the permissions on a file/directory.

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

Extends from
\Task
author
Mehmet Emre Yilmaz
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.system
version
$Revision: 765 $

Properties

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

Methods

methodprivate  checkParams( ) : void
Ensure that correct parameters were passed in.
methodprivate  chown( ) : void
Does the actual work.
methodprivate  chownFile( \PhingFile $file, string $user, string $group ) :
Actually change the mode for the file.
Parameters
Name Type Description
$file \PhingFile
$user string
$group string
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  setQuiet(  $bool ) :
Set quiet mode, which suppresses warnings if chown() fails.
Parameters
Name Type Description
$bool
Details
see
\setFailonerror()
methodpublic  setUser(  $user ) :
Sets the user
Parameters
Name Type Description
$user
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.