System
[ class tree: System ] [ index: System ] [ all elements ]

Class: TResourceParser

Source Location: /TResourceParser.php

Class Overview


TResourceParser class

Class Details

[line 34]
TResourceParser class

By default, TResourceParser is used by the PRADO framework to parse various resource files including component specifications and component templates.

You can specify your own parser class in the application specification.

Namespace: System




version:  v1.0, last update on 2004/08/13 21:44:52
author:  Qiang Xue <qiang.xue@gmail.com>


[ Top ]

Methods



Class Methods


constructor __construct [line 40]

TResourceParser __construct( mixed $config)

Constructor.



Parameters:

mixed   $config   configuration given in the application specification

[ Top ]

method parseAttributes [line 252]

array parseAttributes( string $str)

Parses the attributes of a tag from a string.



return:  attribute values indexed by names.
access:  protected


Parameters:

string   $str   the string to be parsed.

[ Top ]

method parseSpecification [line 50]

array|null parseSpecification( string $str)

Parses a component specification string.

The specification is in XML format and is parsed using simpleXML.




return:  the parsed result, null if parsing failed
access:  public


Parameters:

string   $str   the specification string

[ Top ]

method parseTemplate [line 82]

array parseTemplate( string $input)

Parses a template string.



return:  the parsed result
access:  public


Parameters:

string   $input   the template string

[ Top ]

method parseTheme [line 291]

array|null parseTheme( string $str)

Parses a theme specification string.

The specification is in XML format and is parsed using simpleXML.




return:  the parsed result, null if parsing failed
access:  public


Parameters:

string   $str   the specification string

[ Top ]

method preprocessTemplate [line 267]

string preprocessTemplate( string $str)

Preprocesses a template string by inserting external templates (recursively).



return:  the processed result
access:  protected


Parameters:

string   $str   the template string to be preprocessed

[ Top ]


© 2004-2005 PRADO Software Group. All Rights Reserved.