phpDocumentor
[ class tree: phpDocumentor ] [ index: phpDocumentor ] [ all elements ]
Packages:
phpDocumentor
Converters


Tutorials/Manuals:
Package-level: Files:
actions.php
bug-560532.php
bug-772441.php
builder.php
Classes.inc
clone.inc.php
clone5.inc.php
common.inc.php
config.php
EventStack.inc
file_dialog.php
HighlightParserTests.php
IntermediateParser.inc
IntermediateParserTests.php
Io.inc
new_phpdoc.php
ParserClassTests.php
ParserDescCleanup.inc
ParserPageTests.php
phpdoc.inc
phpdoc.php
phpDocumentorSetupTests.php
phpDocumentorTParserTests.php
ProceduralPages.inc
Publisher.inc
Setup.inc.php
top.php
utilities.php

subpackage DescHTML
DescHTML.inc

subpackage DocBlockTags
DocBlockTags.inc

subpackage Errors
Errors.inc

subpackage InlineTags
InlineTags.inc

subpackage Links
LinkClasses.inc

subpackage ParserData
ParserData.inc

subpackage ParserDocBlock
ParserDocBlock.inc

subpackage ParserElements
ParserElements.inc

subpackage Parsers
Beautifier.php
HighlightParser.inc
Parser.inc
phpDocumentorTParser.inc
Tokenizer.php
TutorialHighlightParser.inc
XMLpackagePageParser.inc

subpackage setup
find_phpdoc.php

subpackage Tutorial
PackagePageElements.inc

subpackage WordParsers
phpDocumentorTWordParser.inc
WordParser.inc

Classes:
Parsers
Parser
parserDescParser
phpDocumentorTParser
phpDocumentor_HighlightParser
phpDocumentor_HighlightWordParser
phpDocumentor_peardoc2_XML_Beautifier
phpDocumentor_TutorialHighlightParser
phpDocumentor_XML_Beautifier_Tokenizer
ppageParser
XMLPackagePageParser
bug_772441
Classes
EventStack
Io
phpDocumentor_IntermediateParser
phpDocumentor_setup
ProceduralPages
Publisher
tests_HighlightParserTests
tests_IntermediateParserTests
tests_ParserClassTests
tests_ParserPageTests
tests_phpDocumentorSetupTests
tests_phpDocumentorTParserTests
DescHTML
parserB
parserBr
parserCode
parserDescVar
parserI
parserKbd
parserList
parserPre
parserSamp
DocBlockTags
parserAccessTag
parserExampleTag
parserFileSourceTag
parserLicenseTag
parserLinkTag
parserMethodTag
parserNameTag
parserParamTag
parserPropertyReadTag
parserPropertyTag
parserPropertyWriteTag
parserReturnTag
parserSeeTag
parserStaticvarTag
parserTag
parserTutorialTag
parserUsedByTag
parserUsesTag
parserVarTag
Errors
ErrorTracker
RecordError
RecordWarning
InlineTags
parserExampleInlineTag
parserIdInlineTag
parserInheritdocInlineTag
parserInlineTag
parserLinkInlineTag
parserSourceInlineTag
parserTocInlineTag
parserTutorialInlineTag
Links
abstractLink
classLink
constLink
defineLink
functionLink
globalLink
methodLink
pageLink
tutorialLink
varLink
Tutorial
parserCData
parserEntity
parserXMLDocBookTag
ParserData
parserBase
parserData
parserPage
parserStringWithInlineTags
WordParsers
ObjectWordParser
phpDocumentorTWordParser
WordParser
ParserDocBlock
parserDesc
parserDocBlock
ParserElements
parserClass
parserConst
parserDefine
parserElement
parserFunction
parserGlobal
parserInclude
parserMethod
parserPackagePage
parserTutorial
parserVar

Class: XMLPackagePageParser

Source Location: /phpDocumentor/XMLpackagePageParser.inc

Class Overview

Publisher
 |
 --Parser
 |
 --XMLPackagePageParser

Used to parse XML DocBook-based tutorials


Author(s):

Version:

  • Release: @VER@

Copyright:

  • 2002-2007 Gregory Beaver

Variables

Methods


Inherited Variables

Class: Publisher

Publisher::$subscriber

Inherited Methods

Class: Parser

Parser::Parser()
Set up invariant parsing variables
Parser::categoryTagHandler()
handles @category
Parser::checkEventPop()
this function checks whether parameter $word is a token for popping the current event off of the Event Stack.
Parser::checkEventPush()
this function checks whether parameter $word is a token for pushing a new event onto the Event Stack.
Parser::configWordParser()
tell the parser's WordParser $wp to set up tokens to parse words by.
Parser::defaultTagHandler()
Handles all standard tags that only have a description
Parser::endTag()
Called to clean up at the end of parsing a @tag in a docblock
Parser::exampleTagHandler()
handles @example
Parser::getParserEventName()
Debugging function, takes an event number and attempts to return its name
Parser::globalTagHandler()
handles @global
Parser::invalidTagHandler()
Handles tags like '@filesource' that only work in PHP 4.3.0+
Parser::packageTagHandler()
handles @package
Parser::paramTagHandler()
handles @param
Parser::parse()
Parse a new file
Parser::propertyTagHandler()
Handles @property(-read or -write) and @method magic tag
Parser::returnTagHandler()
handles @return
Parser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays
Parser::staticvarTagHandler()
handles @staticvar
Parser::usesTagHandler()
handles @uses
Parser::varTagHandler()
handles @var

Class: Publisher

Publisher::publishEvent()
Publish an event
Publisher::subscribe()
Adds a subscriber to the $subscriber array().

Class Details

[line 98]
Used to parse XML DocBook-based tutorials



Tags:

author: Gregory Beaver <[email protected]>
version: Release: @VER@
copyright: 2002-2007 Gregory Beaver
todo: CS cleanup - change package to PhpDocumentor
since: 1.2
license: LGPL


[ Top ]


Class Variables

$context =

[line 125]



Tags:

var: the tag stack

Type: array


[ Top ]

$eventHandlers = array(
PHPDOCUMENTOR_PDP_EVENT_TAG => 'handleTag',
PHPDOCUMENTOR_PDP_EVENT_ATTRIBUTES => 'handleAttributes',
PHPDOCUMENTOR_PDP_EVENT_CDATA => 'handleCData',
PARSER_EVENT_NOEVENTS => 'defaultHandler',
PARSER_EVENT_COMMENTBLOCK => 'ignoreHandler',
PARSER_EVENT_OUTPHP => 'ignoreHandler',
PARSER_EVENT_QUOTE => 'handleQuote',
PHPDOCUMENTOR_PDP_EVENT_ENTITY => 'handleEntity',
)

[line 103]


Type: array


[ Top ]

$pars = array()

[line 117]


Type: array


[ Top ]

$refsect1id = false

[line 119]


Type: mixed


[ Top ]

$refsect2id = false

[line 120]


Type: mixed


[ Top ]

$refsect3id = false

[line 121]


Type: mixed


[ Top ]



Class Methods


static method getParserEventName [line 615]

static mixed getParserEventName( mixed $value)

debugging function

  1. function getParserEventName ($value)
  2. {
  3. $lookup = array(
  4. => "PARSER_EVENT_NOEVENTS",
  5. => "PHPDOCUMENTOR_PDP_EVENT_TAG",
  6. => "PHPDOCUMENTOR_PDP_EVENT_ATTRIBUTES",
  7. => "PHPDOCUMENTOR_PDP_EVENT_CDATA",
  8. => "PHPDOCUMENTOR_PDP_EVENT_LIST",
  9. => "PARSER_EVENT_QUOTE",
  10. => "PHPDOCUMENTOR_PDP_EVENT_ENTITY",
  11. PHPDOCUMENTOR_PDP_EVENT_COMMENT
  12. => "PHPDOCUMENTOR_PDP_EVENT_COMMENT",
  13. PHPDOCUMENTOR_PDP_EVENT_PI
  14. => "PHPDOCUMENTOR_PDP_EVENT_PI",
  15. );
  16. if (isset($lookup[$value])) {
  17. return $lookup[$value];
  18. } else {
  19. return $value;
  20. }
  21. }




Tags:

return: the looked up value if found, else the original value


Overrides Parser::getParserEventName() (Debugging function, takes an event number and attempts to return its name)

Parameters:

mixed $value a value

[ Top ]

constructor XMLPackagePageParser [line 138]

XMLPackagePageParser XMLPackagePageParser( )

Set up the wordparser

  1. {
  2. $this->wp = new ObjectWordParser (true);
  3. }




Tags:



[ Top ]

method parse [line 155]

bool parse( string $parse_data, array $tutorial)

Parse a new file



Tags:

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


Overrides Parser::parse() (Parse a new file)

Parameters:

string $parse_data the parse data
array $tutorial for format, see Io::getTutorials()

[ Top ]

method setupStates [line 524]

void setupStates( )

setup the parser tokens, and the pushEvent/popEvent arrays



Tags:



Overrides Parser::setupStates() (setup the parser tokens, and the pushEvent/popEvent arrays)

[ Top ]


Documentation generated on 2011年12月06日 07:15:31 -0600 by phpDocumentor 1.4.4

AltStyle によって変換されたページ (->オリジナル) /