parser/Location.php

Show: inherited
Table of Contents

Stores the file name and line number of a XML file

Access
public  
Author
Andreas Aderhold  
Copyright
© 2001,2002 THYRELL. All rights reserved  
Package
phing.parser  
Version
$Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $  

\Location

Package: phing\parser

Stores the file name and line number of a XML file

Access
public  
Author
Andreas Aderhold  
Copyright
© 2001,2002 THYRELL. All rights reserved  
Version
$Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $  

Properties

Propertyprivate  $columnNumber= ''
Details
Type
Propertyprivate  $fileName= ''
Details
Type
Propertyprivate  $lineNumber= ''
Details
Type

Methods

methodpublicLocation( string $fileName = null, integer $lineNumber = null, integer $columnNumber = null ) : void

Constructs the location consisting of a file name and line number

Parameters
Name Type Description
$fileName string

the filename

$lineNumber integer

the line number

$columnNumber integer

the column number

Details
Access
public  
methodpublic__toString( ) : void

methodpublictoString( ) : string

Returns the file name, line number and a trailing space.

An error message can be appended easily. For unknown locations, returns empty string.

Returns
Type Description
string the string representation of this Location object
Details
Access
public  
Documentation was generated by DocBlox 0.15.1.