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

Class: parserStringWithInlineTags

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

Class Overview

parserBase
   |
   --parserStringWithInlineTags

Used to represent strings that contain inline tags, so that they can be properly parsed at link time


Author(s):

Version:

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

Variables

Methods


Child classes:

parserCode
Used for <code> in a description
parserPre
Used for <pre> in a description
parserB
Used for <b> in a description
parserI
Used for <i> in a description
parserBr
Used for <br> in a description
parserList
Used for lists <ol> and <ul>
parserTag
used to represent standard tags like @access, etc.
parserCData
parserXMLDocBookTag
a standard XML DocBook Tag
parserDesc
represents a short or long description in a DocBlock (parserDocBlock)
parserPackagePage

Inherited Variables

Inherited Methods


Class Details

[line 473]
Used to represent strings that contain inline tags, so that they can be properly parsed at link time


[ Top ]


Class Variables

$cache =  false

[line 481]


Type:   mixed


[ Top ]

$type =  '_string'

[line 480]

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

always '_string'


Type:   string
Overrides:   Array


[ Top ]

$value = array()

[line 488]

array of strings and parserInlineTags

Format: array(string1,string2,parserInlineTag1,string3,parserInlineTag2,...)


Type:   array
Overrides:   Array


[ Top ]



Method Detail

add   [line 494]

void add( mixed $stringOrInlineTag)

equivalent to the . operator ($a = $b . $c)

Overridden in child classes as:

parserXMLDocBookTag::add()
parserDesc::add()

Parameters:

mixed   $stringOrInlineTag     either a string or a parserInlineTag

[ Top ]

Convert   [line 584]


getString   [line 561]

string getString( [mixed $trim = true])

return the string unconverted (all inline tags are taken out - this should only be used in pre-parsing to see if any other text

is in the string)

  • Return: trimmed value

Overridden in child classes as:

parserTag::getString()
parserAccessTag::getString()
No inline tags are possible, returns 'public' or 'private'

[ Top ]

setSource   [line 519]

void setSource( mixed $source)


[ Top ]

trimmedStrlen   [line 534]

integer trimmedStrlen( )

equivalent to trim(strlen($string))
  • Return: length of the string this object represents

[ Top ]


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