tasks/ext/XmlLintTask.php

Show: inherited
Table of Contents

A XML lint task. Checking syntax of one or more XML files against an XML Schema using the DOM extension.

Author
Knut Urdalen  
Package
phing.tasks.ext  
Version
$Id: XmlLintTask.php 1001 2010-11-24 10:40:05Z mrook $  

\XmlLintTask

Package: phing\tasks\ext

A XML lint task. Checking syntax of one or more XML files against an XML Schema using the DOM extension.

Parent(s)
\Task < \ProjectComponent
Author
Knut Urdalen  
Version
$Id: XmlLintTask.php 1001 2010-11-24 10:40:05Z mrook $  

Properties

Propertyprotected  $file= ''
Details
Type
n/a
Propertyprotected  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $haltonfailure= 'true'
Default valuetrueDetails
Type
n/a
Propertyprotected  $schema= ''
Details
Type
n/a

Methods

methodpubliccreateFileSet( ) : \FileSet

Nested creator, creates a FileSet for this task

Returns
Type Description
\FileSet The created fileset object
methodpublicerrorHandler( int $level, string $message, string $file, int $line,  $context ) : void

Local error handler to catch validation errors and log them through Phing

Parameters
Name Type Description
$level int
$message string
$file string
$line int
$context
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodprotectedlint( string $file ) : void

Performs validation

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

methodprotectedlogError(  $message ) : void

Parameters
Name Type Description
$message
methodpublicmain( ) : void

Execute lint check against PhingFile or a FileSet

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetFile( \PhingFile $file ) : void

File to be performed syntax check on

Parameters
Name Type Description
$file \PhingFile
methodpublicsetHaltonfailure( bool $haltonfailure ) : void

Sets the haltonfailure attribute

Parameters
Name Type Description
$haltonfailure bool
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetSchema( \PhingFile $schema ) : void

XML Schema Description file to validate against

Parameters
Name Type Description
$schema \PhingFile
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.