tasks/ext/FileSizeTask.php

Show: inherited
Table of Contents

fileHash

Calculate either MD5 or SHA hash value of a specified file and retun the value in a property

Author
Johan Persson  
Package
phing.tasks.ext  
Version
$Id: FileSizeTask.php 1084 2011-05-06 09:55:25Z mrook $  

\FileSizeTask

Package: phing\tasks\ext

fileHash

Calculate either MD5 or SHA hash value of a specified file and retun the value in a property

Parent(s)
\Task < \ProjectComponent
Author
Johan Persson  
Version
$Id: FileSizeTask.php 1084 2011-05-06 09:55:25Z mrook $  

Properties

Propertyprivate\PhingFile  $file= ''

Property for File

file
Details
Type
\PhingFile
Propertyprivatestring  $propertyName= '"filesize"'

Property where the file size will be stored

Default value"filesize"Details
Type
string

Methods

methodprivatecheckFile( ) : void

checks file attribute

Throws
Exception Description
\BuildException
methodprivatecheckPropertyName( ) : void

checks property attribute

Throws
Exception Description
\BuildException
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Main-Method for the Task

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetFile( \PhingFile $file ) : void

Which file to calculate the file size of

Parameters
Name Type Description
$file \PhingFile
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetPropertyName(  $property ) : void

Set the name of the property to store the file size

Parameters
Name Type Description
$property
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.