Location

Stores the file name and line number of a XML file

author

Andreas Aderhold [email protected]

copyright

2001,2002 THYRELL. All rights reserved

version

$Id: c8caa44dcb60b20a8c53e82fbe7ea9c1de9d93d9 $

package

phing.parser

Methods

Constructs the location consisting of a file name and line number

__construct(string $fileName = null, integer $lineNumber = null, integer $columnNumber = null) 

Arguments

$fileName

string

the filename

$lineNumber

integer

the line number

$columnNumber

integer

the column number

__toString

__toString() : string

Response

string

getColumnNumber

getColumnNumber() : null|integer

Response

null|integer

getFileName

getFileName() : null|string

Response

null|string

getLineNumber

getLineNumber() : null|integer

Response

null|integer

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

toString() : string

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

Response

string

the string representation of this Location object

Properties

fileName

fileName : null|string
var

Type(s)

null|string

lineNumber

lineNumber : integer|null
var

Type(s)

integer|null

columnNumber

columnNumber : integer|null
var

Type(s)

integer|null