Description
Publisher
|
--Parser
|
--XMLPackagePageParser
Located in File: /phpDocumentor/XMLpackagePageParser.inc
Used to parse XML DocBook-based tutorials
Method Detail
Summary:
bool
parse
(
string $parse_data,
array $tutorial)
Static Method getParserEventName (line 615)
mixed getParserEventName(
mixed
$value)
Overrides : Parser::getParserEventName() Debugging function, takes an event number and attempts to return its name
debugging function
{
$lookup = array(
=> "PARSER_EVENT_NOEVENTS",
=> "PHPDOCUMENTOR_PDP_EVENT_TAG",
=> "PHPDOCUMENTOR_PDP_EVENT_ATTRIBUTES",
=> "PHPDOCUMENTOR_PDP_EVENT_CDATA",
=> "PHPDOCUMENTOR_PDP_EVENT_LIST",
=> "PARSER_EVENT_QUOTE",
=> "PHPDOCUMENTOR_PDP_EVENT_ENTITY",
PHPDOCUMENTOR_PDP_EVENT_COMMENT
=> "PHPDOCUMENTOR_PDP_EVENT_COMMENT",
PHPDOCUMENTOR_PDP_EVENT_PI
=> "PHPDOCUMENTOR_PDP_EVENT_PI",
);
if (isset($lookup[$value])) {
return $lookup[$value];
} else {
return $value;
}
}
Parameters
Info
- return - the looked up value if found, else the original value
Constructor XMLPackagePageParser (line 138)
XMLPackagePageParser XMLPackagePageParser(
)
Set up the wordparser
Info
Method parse (line 155)
bool parse(
string
$parse_data, array
$tutorial)
Overrides : Parser::parse() Parse a new file
Parse a new file
Parameters
Info
- staticvar - integer $endrecur: used for recursion limiting if a handler for an event is not found
- uses - parserTutorial - using Publisher::PublishEvent(), a new tutorial
is created from the file parsed, and passed to the
Intermediate Parser
Method setupStates (line 524)
void setupStates(
)
Overrides : Parser::setupStates() setup the parser tokens, and the pushEvent/popEvent arrays
setup the parser tokens, and the pushEvent/popEvent arrays
Info