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

Class: PDFParser

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Converters/PDF/default/ParserPDF.inc

Class Overview

Publisher
   |
   --Parser
      |
      --PDFParser



Author(s):

Version:

  • $Id: Parser.inc,v 1.174 2003/01/01 07:23:11 CelloG Exp $

Variables

Methods


Inherited Variables

Inherited Methods

Class: Parser

Parser::Parser()
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::getParserEventName()
Debugging function, takes an event number and attempts to return its name
Parser::parse()
Parse a new file
Parser::setupStates()
setup the parser tokens, and the pushEvent/popEvent arrays

Class: Publisher

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

Class Details

[line 38]


[ Top ]


Class Variables

$eventHandlers = array(
            PHPDOCUMENTOR_PDF_EVENT_TEXT => 'handleText',
            PHPDOCUMENTOR_PDF_EVENT_FONT => 'handleFont',
            PHPDOCUMENTOR_PDF_EVENT_NEWPAGE => 'handleNewPage',
            PARSER_EVENT_QUOTE => 'handleQuote',
            PARSER_EVENT_NOEVENTS => 'defaultHandler',
            PHPDOCUMENTOR_PDF_EVENT_CONTENT => 'handleContent',
            PHPDOCUMENTOR_PDF_EVENT_PDFFUNCTION => 'handlePDFfunction',
            )

[line 40]


Type:   mixed


[ Top ]



Method Detail

PDFParser (Constructor)   [line 52]

PDFParser PDFParser( )


[ Top ]

defaultHandler   [line 125]

void defaultHandler( mixed $word, mixed $pevent)


[ Top ]

getParserEventName   [line 453]

void getParserEventName( mixed $value)


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

handleContent   [line 357]

void handleContent( mixed $word, mixed $pevent)


[ Top ]

handleFont   [line 191]

void handleFont( mixed $word, mixed $pevent)


[ Top ]

handleNewPage   [line 130]

void handleNewPage( mixed $word, mixed $pevent)


[ Top ]

handlePDFFunction   [line 229]

void handlePDFFunction( mixed $word, mixed $pevent)


[ Top ]

handleText   [line 136]

void handleText( mixed $word, mixed $pevent)


[ Top ]

parse   [line 64]

bool parse( string $parse_data, phpdocpdf $fontdir, mixed &$pdf)

Parse a new file
  • Staticvar: integer $endrecur: used for recursion limiting if a handler for an event is not found

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

Parameters:

string   $parse_data     
phpdocpdf   $fontdir     

[ Top ]

setupStates   [line 392]

void setupStates( )

setup the parser tokens, and the pushEvent/popEvent arrays

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


Documentation generated on Fri, 30 Apr 2004 22:10:33 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.