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
$Id$  

\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
$Id$  

Properties

Propertyprivate  $columnNumber= ''
Details
Type
n/a
Propertyprivate  $fileName= ''
Details
Type
n/a
Propertyprivate  $lineNumber= ''
Details
Type
n/a

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.18.1.