PHP Класс ExpatParser, symfony-1.4

It takes an XML file represented by a abstract path name, and starts parsing the file and calling the different "trap" methods inherited from the AbstractParser class. Those methods then invoke the represenatative methods in the registered handler classes.
Автор: Andreas Aderhold ([email protected])
Наследование: extends AbstractSAXParser
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Reader $reader, string $filename = null ) Constructs a new ExpatParser object.
getLocation ( ) : object Returns the location object of the current parsed element. It describes the location of the element within the XML file (line, char)
parse ( ) : integer Starts the parsing process.
parserSetOption ( $opt, $val ) : boolean Override PHP's parser default settings, created in the constructor.

Описание методов

__construct() публичный Метод

The constructor accepts a PhingFile object that represents the filename for the file to be parsed. It sets up php's internal expat parser and options.
public __construct ( Reader $reader, string $filename = null )
$reader Reader The Reader Object that is to be read from.
$filename string Filename to read.

getLocation() публичный Метод

Returns the location object of the current parsed element. It describes the location of the element within the XML file (line, char)
public getLocation ( ) : object
Результат object the location of the current parser

parse() публичный Метод

Starts the parsing process.
public parse ( ) : integer
Результат integer 1 if the parsing succeeded

parserSetOption() публичный Метод

Override PHP's parser default settings, created in the constructor.
public parserSetOption ( $opt, $val ) : boolean
Результат boolean true if the option could be set, otherwise false