phpDocumentor phpDocumentor
ParserElements
[ class tree: phpDocumentor ] [ index: phpDocumentor ] [ all elements ]
phpDocumentor
Packages:
phpDocumentor
Converters

Tutorials/Manuals:
Package-level: Files:
actions.php
bug-560532.php
bug-772441.php
builder.php
Classes.inc
clone.inc.php
clone5.inc.php
common.inc.php
config.php
EventStack.inc
file_dialog.php
HighlightParserTests.php
IntermediateParser.inc
IntermediateParserTests.php
Io.inc
new_phpdoc.php
ParserClassTests.php
ParserDescCleanup.inc
ParserPageTests.php
phpdoc.inc
phpdoc.php
phpDocumentorSetupTests.php
phpDocumentorTParserTests.php
ProceduralPages.inc
Publisher.inc
Setup.inc.php
top.php
utilities.php
DescHTML
DescHTML.inc
DocBlockTags
DocBlockTags.inc
Errors
Errors.inc
InlineTags
InlineTags.inc
Links
LinkClasses.inc
ParserData
ParserData.inc
ParserDocBlock
ParserDocBlock.inc
ParserElements
ParserElements.inc
Parsers
Beautifier.php
HighlightParser.inc
Parser.inc
phpDocumentorTParser.inc
Tokenizer.php
TutorialHighlightParser.inc
XMLpackagePageParser.inc
setup
find_phpdoc.php
Tutorial
PackagePageElements.inc
WordParsers
phpDocumentorTWordParser.inc
WordParser.inc

Classes:
Parsers
Parser
parserDescParser
phpDocumentorTParser
phpDocumentor_HighlightParser
phpDocumentor_HighlightWordParser
phpDocumentor_peardoc2_XML_Beautifier
phpDocumentor_TutorialHighlightParser
phpDocumentor_XML_Beautifier_Tokenizer
ppageParser
XMLPackagePageParser
bug_772441
Classes
EventStack
Io
phpDocumentor_IntermediateParser
phpDocumentor_setup
ProceduralPages
Publisher
tests_HighlightParserTests
tests_IntermediateParserTests
tests_ParserClassTests
tests_ParserPageTests
tests_phpDocumentorSetupTests
tests_phpDocumentorTParserTests
DescHTML
parserB
parserBr
parserCode
parserDescVar
parserI
parserKbd
parserList
parserPre
parserSamp
DocBlockTags
parserAccessTag
parserExampleTag
parserFileSourceTag
parserLicenseTag
parserLinkTag
parserMethodTag
parserNameTag
parserParamTag
parserPropertyReadTag
parserPropertyTag
parserPropertyWriteTag
parserReturnTag
parserSeeTag
parserStaticvarTag
parserTag
parserTutorialTag
parserUsedByTag
parserUsesTag
parserVarTag
Errors
ErrorTracker
RecordError
RecordWarning
InlineTags
parserExampleInlineTag
parserIdInlineTag
parserInheritdocInlineTag
parserInlineTag
parserLinkInlineTag
parserSourceInlineTag
parserTocInlineTag
parserTutorialInlineTag
Links
abstractLink
classLink
constLink
defineLink
functionLink
globalLink
methodLink
pageLink
tutorialLink
varLink
Tutorial
parserCData
parserEntity
parserXMLDocBookTag
ParserData
parserBase
parserData
parserPage
parserStringWithInlineTags
WordParsers
ObjectWordParser
phpDocumentorTWordParser
WordParser
ParserDocBlock
parserDesc
parserDocBlock
ParserElements
parserClass
parserConst
parserDefine
parserElement
parserFunction
parserGlobal
parserInclude
parserMethod
parserPackagePage
parserTutorial
parserVar

Class: parserFunction

Source Location: /phpDocumentor/ParserElements.inc

Class parserFunction

Class Overview

Located in /phpDocumentor/ParserElements.inc [line 321]

parserBase
 |
 --parserElement
 |
 --parserFunction
Author(s): Information Tags:
Version: $Id: ParserElements.inc 289555 2009年10月12日 03:52:03Z ashnazg $
Copyright: 2002-2008 Gregory Beaver
Since: 1.0rc1

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Class Overview | Descendants | Inherited Properties, Constants, and Methods | Property Summary | Properties Detail | Method Summary | Methods Detail
Inherited Properties Inherited Methods Inherited Constants

Inherited From parserElement

parserElement::$conflicts
parserElement::$docblock
parserElement::$endlinenumber
parserElement::$file
parserElement::$linenumber
parserElement::$name
parserElement::$path

Inherited From parserBase

parserBase::$value

Inherited From parserElement

parserElement::getEndLineNumber()
parserElement::getFile()
parserElement::getLineNumber()
parserElement::getName()
parserElement::getPackage()
parserElement::getPath()
parserElement::setDocBlock()
parserElement::setEndLineNumber()
Sets the ending line number of elements
parserElement::setFile()
parserElement::setLineNumber()
Set starting line number
parserElement::setName()
parserElement::setPath()

Inherited From parserBase

parserBase::getType()
gets the type
parserBase::getValue()
gets the value
parserBase::setValue()
sets the given value

[ Top ]
Property Summary
array $globals global declarations parsed from function definition
array $params parameters parsed from function definition.
boolean $returnsreference Function returns a reference to an element, instead of a value
mixed $source
array $statics static variable declarations parsed from function definition
string $type Type is used by many functions to skip the hassle of if phpDocumentor_get_class($blah) == 'parserBlah'

[ Top ]
Method Summary
void addGlobals() Add all "global $var, $var2" declarations to this function
void addParam()
void addSource() Set the source code. Always array in PHP 4.3.0+
void addStatics() Add all "static $var, $var2 = 6" declarations to this function
mixed getConflicts() Returns all functions in other packages that have the same name as this function
string getFunctionCall() Get a human-friendly description of the function call
array getIntricateFunctionCall() Like getFunctionCall(), but has no English or pre-determined formatting.
mixed getLink() quick way to link to this element
string getParam()
string|array getSource()
boolean hasSource() Determine whether the source code has been requested via {@source}
array listGlobals()
array listParams()
array listStatics()
void setReturnsReference() sets $returnsreference to true

[ Top ]
Properties
array $globals = false [line 351]

global declarations parsed from function definition


[ Top ]
array $params = false [line 335]

parameters parsed from function definition.

param name may be null, in which case, updateParams() must be called from the Converter

API Tags:
See: updateParams()


[ Top ]
boolean $returnsreference = false [line 345]

Function returns a reference to an element, instead of a value

set to true if function is declared as:

  1. function &func(...


[ Top ]
mixed $source = '' [line 358]

[ Top ]
array $statics = false [line 356]

static variable declarations parsed from function definition


[ Top ]
string $type = 'function' [line 327]

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


Redefinition of:
parserBase::$type
Type is used by many functions to skip the hassle of if

Redefined in descendants as:
  • parserMethod::$type : Type is used by many functions to skip the hassle of if phpDocumentor_get_class($blah) == 'parserBlah'

[ Top ]
Methods
addGlobals [line 433]

void addGlobals( array $globals )

Add all "global $var, $var2" declarations to this function

Parameters:
array $globals: Format: array(globalname1, globalname2,....)


[ Top ]
addParam [line 366]

void addParam( string $name, string $value, [boolean $has_default = true], [null|string $typehint = null] )

Parameters:
string $name:
string $value: default value parsed from function definition
boolean $has_default: indicates whether this parameter has a default value
null|string $typehint: class type hint


Redefined in descendants as:

[ Top ]
addSource [line 379]

void addSource( string|array $source )

Set the source code. Always array in PHP 4.3.0+

Parameters:
string|array $source:


[ Top ]
addStatics [line 443]

void addStatics( array $static, array $vals )

Add all "static $var, $var2 = 6" declarations to this function

Parameters:
array $static: Format: array(varname1, varname2,...)
array $vals: Format: array(default val of var 1, default val of var 2,...) if var 1 has no default, array(default val of var 2,...)


[ Top ]
getConflicts [line 422]

mixed getConflicts( Converter &$c )

Returns all functions in other packages that have the same name as this function

Parameters:
Converter &$c:

API Tags:
Return: false or an array Format: (package => parserFunction of conflicting functions)


[ Top ]
getFunctionCall [line 580]

string getFunctionCall( )

Get a human-friendly description of the function call

takes declaration like:

  1. /** @returns string ... {rest of docblock}
  2. function &func($param1, $param2 = 6,
  3. $param3 = array('20',9 => "heroo"))
  4. {...}
and returns: string &func( $param1, [$param2 = 6], [$param3 = array('20',9 => "heroo")] )


API Tags:
Return: stylized function declaration


Redefined in descendants as:

[ Top ]
getIntricateFunctionCall [line 621]

array getIntricateFunctionCall( $converter, $paramtags )

Like getFunctionCall(), but has no English or pre-determined formatting.

Much more flexible.

Parameters:
$converter:
$paramtags:

API Tags:
Return: Format:
  1. array('name' => function name ,
  2. 'returnsref' => boolean if declared as "function &name()"
  3. 'params' => array('type' => data type of parameter,
  4. 'description' => from @param tag,
  5. 'name' => variable name,
  6. 'default' => default value if any))


Redefined in descendants as:

[ Top ]
getLink [line 408]

mixed getLink( Converter $c, [string $text = false], [ $returnobj = false] )

quick way to link to this element

Parameters:
Converter $c:
string $text: text to display for the link or false for default text
$returnobj:

API Tags:
Return: converter-specific link to this function


Redefined in descendants as:

[ Top ]
getParam [line 464]

string getParam( string $name )

Parameters:
string $name:

API Tags:
Return: default value of param $name


[ Top ]
getReturnsReference [line 561]

boolean getReturnsReference( )


API Tags:
Return: returns value of $returnsreference


[ Top ]
getSource [line 397]

string|array getSource( )


API Tags:
Return: source code ready for highlighting


[ Top ]
hasSource [line 388]

boolean hasSource( )

Determine whether the source code has been requested via {@source}



[ Top ]
listGlobals [line 515]

array listGlobals( )


API Tags:
Return: format: array(array(index, globalname),...)


[ Top ]
listParams [line 480]

array listParams( )


API Tags:
Return: format: array(array(paramname, default value),...)


[ Top ]
listStatics [line 534]

array listStatics( )


API Tags:
Return: format: array(array(static var name, static var default value),...)


[ Top ]
setReturnsReference [line 553]

void setReturnsReference( )

sets $returnsreference to true



[ Top ]

Documentation generated on 2011年12月06日 07:20:46 -0600 by phpDocumentor 1.4.4

AltStyle によって変換されたページ (->オリジナル) /