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

Class: parserData

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/ParserData.inc

Class Overview


Contains an in-memory representation of all documentable elements (parserPage, parserFunction, parserDefine, parserInclude, parserClass, parserMethod, parserVar) and their DocBlocks (parserDocBlock).


Author(s):

Version:

  • $Id: ParserData.inc,v 1.72 2003/01/17 07:01:29 CelloG Exp $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 222]
Contains an in-memory representation of all documentable elements (parserPage, parserFunction, parserDefine, parserInclude, parserClass, parserMethod, parserVar) and their DocBlocks (parserDocBlock).

This class works in coordination with phpDocumentor_IntermediateParser to take output from Parser::handleEvent() and create indexes, links, and other assorted things (all documented in phpDocumentor_IntermediateParser and Converter)



[ Top ]


Class Variables

$classelements = array()

[line 243]

array of parsed class elements

Type:   array


[ Top ]

$clean =  true

[line 265]

used by phpDocumentor_IntermediateParser::handleDocBlock() to determine whether a docblock is a page-level docblock or not.

$clean is true as long as only 0 or 1 docblock has been parsed, and no element other than parserPage has been parsed


Type:   bool


[ Top ]

$docblock =  false

[line 270]

DocBlock (parserDocBlock) for this page, or false if not set

Type:   mixed


[ Top ]

$elements = array()

[line 233]

array of parsed elements

Type:   array


[ Top ]

$links = array()

[line 259]

array of links descended from abstractLink

Type:   array


[ Top ]

$parent =  false

[line 228]

parserPage element that is this parserData's parent, or false if not set

Type:   mixed


[ Top ]

$privateclasselements = array()

[line 253]

array of parsed class elements with @access private

Type:   array


[ Top ]

$privateelements = array()

[line 238]

array of parsed elements with @access private

Type:   array


[ Top ]

$tutorial =  false

[line 248]


Type:   parserTutorial|false


[ Top ]

$type =  'page'

[line 276]

Type is used by many functions to skip the hassle of if get_class($blah) == 'parserBlah'

always 'page', used in element indexing and conversion functions found in Converter


Type:   string


[ Top ]



Method Detail

addElement   [line 281]

void addElement( parserElement &$element)


Parameters:

parserElement   &$element     add a parsed element to the $elements array, also sets $clean to false

[ Top ]

addLink   [line 315]

void addLink( parserElement &$element, [string $classorpackage = ''], [string $subpackage = ''])


Parameters:

parserElement   &$element     element to add a new link (descended from abstractLink)to the $links array
string   $classorpackage     classname for elements that are class-based (this may be deprecated in the future, as the classname should be contained within the element. if $element is a page, this parameter is a package name
string   $subpackage     subpackage name for page elements

[ Top ]

addTutorial   [line 298]

void addTutorial( parserTutorial $t, Converter &$c)


Parameters:

parserTutorial   $t     
Converter   &$c     

[ Top ]

getClasses   [line 363]

array getClasses( Converter &$c)

returns a list of all classes declared in a file
  • Return: Format: array(packagename => parserClass,packagename => parserClass,...)

Parameters:

Converter   &$c     

[ Top ]

getName   [line 375]

void getName( )


[ Top ]

getTutorial   [line 304]

void getTutorial( )


[ Top ]

isClean   [line 392]

bool isClean( )

  • Return: returns the value of $clean

[ Top ]

setDocBlock   [line 401]

void setDocBlock( parserDocBlock &$docblock)


Parameters:

parserDocBlock   &$docblock     

[ Top ]

setParent   [line 384]

void setParent( parserPage &$parent)


Parameters:

parserPage   &$parent     parent element of this parsed data

[ Top ]


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