parserDocBlock parserDocBlock(
)
|
|
sets package to default
API Tags:
void addAccess(
string
$value
)
|
|
add an @access tag to the tags array
Parameters:
string |
$value: |
should be either public or private |
void addExample(
string
$value, string
$path
)
|
|
adds an @example tag
Parameters:
string |
$value: |
contents of the tag |
string |
$path: |
path to the file containing this tag |
void addFileSource(
string
$path, array
$source
)
|
|
Adds a new @filesource tag to the DocBlock
Parameters:
string |
$path: |
full path to the file |
array |
$source: |
tokenized source code, ordered by line number |
Information Tags:
void addFuncGlobal(
string
$type, string
$value
)
|
|
adds a function declaration of @global to the $funcglobals array
Parameters:
string |
$type: |
global type |
string |
$value: |
description of how the global is used in the function |
void addLink(
string
$link
)
|
|
creates a parserLinkTag and adds it to the $tags array
Parameters:
void addName(
string
$value
)
|
|
Adds a @name tag to the tag list
Parameters:
string |
$value: |
new name of element |
void addPackage(
string
$keyword, mixed
$value
)
|
|
Parameters:
string |
$keyword: |
tag name (either package or subpackage) |
mixed |
$value: |
either a string or a parserStringWithInlineTags. Strips all inline tags and use the text as the package |
creates a parserReturnTag and adds it to the $tags array
Parameters:
string |
$returnType: |
the one-word name of the return type (mixed should be used if more than one type) |
parserStringWithInlineTags |
$value: |
|
void addSee(
string
$keyword, string
$value
)
|
|
creates a parserLinkTag and adds it to the $tags array
Parameters:
string |
$value: |
|
string |
$keyword: |
either see or uses |
Used to insert DocBlock Template tags into a docblock
Parameters:
API Tags:
void addUnknownTag(
string
$keyword, string
$value
)
|
|
adds an unknown tag to the $unknown_tags array for use by custom converters
Parameters:
string |
$keyword: |
tag name |
string |
$value: |
tag value |
Add a @uses tag to the DocBlock
Parameters:
Information Tags:
creates a parserVarTag and adds it to the $tags array
Parameters:
string |
$varType: |
the one-word name of the variable type (mixed should be used if more than one type) |
parserStringWithInlineTags |
$value: |
|
Tells the DocBlock it can have a @filesource tag
Only page-level DocBlocks may have a @filesource tag
Tells the DocBlock it can't have a @filesource tag
Only page-level DocBlocks may have a @filesource tag
void changeGlobal(
integer
$index, string
$name
)
|
|
Parameters:
integer |
$index: |
index of parameter in the $funcglobals array |
string |
$name: |
name of the parameter to set in the $funcglobals array |
void changeParam(
integer
$index, string
$name, string|null
$type
)
|
|
Parameters:
integer |
$index: |
index of parameter in the $params array |
string |
$name: |
name of the parameter to set in the $params array |
string|null |
$type: |
type of the parameter |
void changeStatic(
integer
$index, string
$name
)
|
|
Parameters:
integer |
$index: |
index of parameter in the $statics array |
string |
$name: |
name of the parameter to set in the $statics array |
Parameters:
Converter |
&$converter: |
takes $desc and converts it to a string and returns it if present, otherwise returns '' |
integer getEndLineNumber(
)
|
|
Retrieve ending line number
boolean getExplicitCategory(
)
|
|
If the DocBlock has a @category tag, then this returns true
boolean getExplicitPackage(
)
|
|
If the DocBlock has a @package tag, then this returns true
mixed getKeyword(
string
$keyword
)
|
|
Parameters:
API Tags:
Return: | false if no keyword, unconverted value if one keyword, array of unconverted values if more than one keyword |
Retrieve starting line number
Parameters:
Converter |
&$converter: |
takes $sdesc and converts it to a string and returns it if present, otherwise returns '' |
API Tags:
Return: | always 'docblock' |
API Tags:
Return: | Format: array('var' => tag name, 'data' => unconverted tag value) |
void overridePackage(
string
$category, string
$package, string
$subpackage, string
$elname, string
$type
)
|
|
set the element's package to the passed values. Used in phpDocumentor_IntermediateParser to align package of
elements inside a class or procedural page to the package of the class/procedural page
Parameters:
string |
$category: |
|
string |
$package: |
|
string |
$subpackage: |
|
string |
$elname: |
element name |
string |
$type: |
element type (include, define, var, method, global, function, const) |
Parse out any html tags from doc comments, and make them into
abstract structures
API Tags:
void setEndLineNumber(
integer
$number
)
|
|
Sets the ending line number for the DocBlock
Parameters:
void setExplicitCategory(
)
|
|
Used if this docblock has a @category tag.
phpDocumentor will guess category for DocBlocks that don't have a @category tag
API Tags:
void setExplicitPackage(
)
|
|
Used if this docblock has a @package tag.
phpDocumentor will guess package for DocBlocks that don't have a @package tag
API Tags:
void setLineNumber(
integer
$number
)
|
|
Sets the starting line number for the DocBlock
Parameters:
Set the short description of the DocBlock
Setting the short description is possible by passing in one of three possible parameters:
- another DocBlock's short description
- another DocBlock, the short description will be extracted
- a Zend Studio-compatible @desc tag
Parameters:
void setSource(
string|array
$source, [false|string
$class = false]
)
|
|
Passes to parserStringWithInlineTags::setSource()
After passing, it calls postProcess() to set up the new source
Parameters:
string|array |
$source: |
tokenized highlight-ready source code |
false|string |
$class: |
name of class if this is a method source |
void updateGlobals(
array
$funcs
)
|
|
replaces nameless global variables in the $funcglobals array with their names
Parameters:
void updateModifiers(
array
$modifiers
)
|
|
Parameters:
void updateParams(
array
$params
)
|
|
replaces nameless parameters in the $params array with their names
add @param tags for params in the function with no entry
Parameters:
array |
$params: |
Format: array(parameter key => array(0 => parameter name[,1 => default value][,2 => type hint]),...) |
void updateStatics(
array
$funcs
)
|
|
replaces nameless static variables in the $statics array with their names
Parameters: