Description
Publisher
|
--Parser
|
--parserDescParser
Located in File: /phpDocumentor/ParserDescCleanup.inc
Parses a DocBlock description to retrieve abstract representations of
<pre>,<code>,<p>,<ul>,<ol>,<li>,<b>,<i>
- tutorial: - phpDocumentor Tutorial
- author: - Greg Beaver <[email protected]>
- version: - $Id: Parser.inc 238276 2007-06-22 14:58:30Z ashnazg $
- copyright: - 2000-2007 Kellin, Joshua Eichorn
- since: - 1.2
Method Detail
Summary:
void
parse
(
array &$parse_data, [
boolean $sdesc =
false], [
string $ind_type =
'parserDesc'])
Constructor parserDescParser (line 349)
parserDescParser parserDescParser(
)
$wp is the word parser that retrieves tokens
Info
Method doSimpleList (line 1188)
boolean doSimpleList(
string
$word)
Return a simple list, if found
This helper function extracts a simple list beginning with any of 'o','-'.'#','+','0','1','0.','1.' and starts parsing it.
Parameters
- string $word: line that may contain a simple list
Info
- return - true if a list is found, false otherwise
Method getParserEventName (line 1462)
void getParserEventName(
$value)
Overrides : Parser::getParserEventName() Debugging function, takes an event number and attempts to return its name
Parameters
Info
Method parse (line 363)
void parse(
array
&$parse_data, [boolean
$sdesc = false], [string
$ind_type = 'parserDesc'])
Overrides : Parser::parse() Parse a new file
Parse a long or short description for tags
Parameters
- array &$parse_data: array of strings or parserInlineTags
- boolean $sdesc: true if the description is a short description. (only 1 paragraph allowed in short desc)
- string $ind_type: name of the class to instantiate for each paragraph. parserDesc for desc/sdesc, parserStringWithInlineTags for tag data
Info
Method setupStates (line 1231)
void setupStates(
boolean
$sdesc)
Overrides : Parser::setupStates() setup the parser tokens, and the pushEvent/popEvent arrays
setup the parser tokens, and the pushEvent/popEvent arrays
Parameters
- boolean $sdesc: determines whether to allow paragraph parsing
Info