tasks/ext/PhpLintTask.php

Show: inherited
Table of Contents

\PhpLintTask

Package: phing\tasks\ext

A PHP lint task. Checking syntax of one or more PHP source file.

Parent(s)
\Task < \ProjectComponent
Author
Knut Urdalen  
Author
Stefan Priebsch  
Version
$Id: PhpLintTask.php 1328 2011-10-20 09:40:21Z mrook $  

Properties

Propertyprotected  $badFiles= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $cache= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $deprecatedAsError= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $errorProperty= ''
Details
Type
n/a
Propertyprotected  $file= ''
Details
Type
n/a
Propertyprotected  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $haltOnFailure= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $hasErrors= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $interpreter= ''''
Default value''Details
Type
n/a
Propertyprotected  $logLevel= 'Project::MSG_INFO'
Default valueProject::MSG_INFODetails
Type
n/a
Propertyprotected  $tofile= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct( ) : void

Initialize the interpreter with the Phing property

methodpubliccreateFileSet( ) : \FileSet

Nested creator, creates a FileSet for this task

Returns
Type Description
\FileSet The created fileset object
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodprotectedlint( string $file ) : void

Performs the actual syntax check

Parameters
Name Type Description
$file string
methodpubliclog( ) : void

methodpublicmain( ) : void

Execute lint check against PhingFile or a FileSet

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetCacheFile( \PhingFile $file ) : void

Whether to store last-modified times in cache

Parameters
Name Type Description
$file \PhingFile
methodpublicsetDeprecatedAsError( boolean $deprecatedAsError ) : void

Sets whether to treat deprecated warnings (introduced in PHP 5.3) as errors

Parameters
Name Type Description
$deprecatedAsError boolean
methodpublicsetDescription( ) : void

methodpublicsetErrorproperty( string $propname ) : void

Set an property name in which to put any errors.

Parameters
Name Type Description
$propname string
methodpublicsetFile( \PhingFile $file ) : void

File to be performed syntax check on

Parameters
Name Type Description
$file \PhingFile
methodpublicsetHaltOnFailure( boolean $aValue ) : void

The haltonfailure property

Parameters
Name Type Description
$aValue boolean
methodpublicsetInterpreter( string $sPhp ) : void

Override default php interpreter

Parameters
Name Type Description
$sPhp string
Details
Todo
Do some sort of checking if the path is correct but would require traversing the systems executeable path too  
methodpublicsetLevel( string $level ) : void

Set level of log messages generated (default = info)

Parameters
Name Type Description
$level string
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetToFile(  $tofile ) : void

File to save error messages to

Parameters
Name Type Description
$tofile
Documentation was generated by DocBlox 0.17.1.