Description
parserBase
|
--parserStringWithInlineTags
Located in File: /phpDocumentor/ParserData.inc
Used to represent strings that contain inline tags, so that they can be properly parsed at link time
Classes extended from parserStringWithInlineTags:
- parserCData
- Represents <![CDATA[ ]]> sections.
- parserXMLDocBookTag
- a standard XML DocBook Tag
- 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
- parserDescVar
- Used for <var> in a description
- parserSamp
- Used for <samp> in a description
- parserKbd
- Used for <kbd> 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.
- parserPackagePage
- parserDesc
- represents a short or long description in a DocBlock (parserDocBlock)
Method Detail
Summary:
void
add
(
mixed $stringOrInlineTag)
string
Convert
(
Converter &$converter, [
bool $postprocess =
true], [
bool $trim =
true])
Method add (line 804)
void add(
mixed
$stringOrInlineTag)
Overridden in child classes as:
- parserXMLDocBookTag::add()
- Add contents to this tag.
- parserDesc::add()
equivalent to the . operator ($a = $b . $c)
Parameters
Info
Method getString (line 896)
string getString(
[bool
$trim = true])
Overridden in child classes as:
- parserTag::getString()
- Returns the text minus any inline tags
- parserAccessTag::getString()
- No inline tags are possible, returns 'public', 'protected' or 'private'
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)
Parameters
- bool $trim: whether to trim the string
Info
Method hasInlineTag (line 835)
bool hasInlineTag(
)
Determine whether the string contains any inline tags
Info
Method setSource (line 853)
void setSource(
string|array
$source)
Pass source code to any {@source} tags contained within the string for later conversion.
Parameters
- string|array $source: source code ready to be highlighted
Info
Method trimmedStrlen (line 868)
integer trimmedStrlen(
)
equivalent to trim(strlen($string))
Info
- return - length of the string this object represents