PHP Class tag

Inheritance: extends CI_Model
Afficher le fichier Open project: peej/phpdoctor Class Usage Examples

Méthodes publiques

Свойство Type Description
$_name str The name of the tag.
$_parent programElementDoc Reference to the elements parent.
$_root rootDoc Reference to the root element.
$_text str The value of the tag as raw data, without any text processing applied.

Méthodes publiques

Méthode Description
_getInlineTags ( $text ) : Tag[] Parse out inline tags from within a text string
displayEmpty ( ) : boolean Return true if this Taglet should be outputted even if it has no text content.
displayName ( ) : str Get display name of this tag.
firstSentenceTags ( $formatter ) : Tag[] Return the first sentence of the comment as tags. Includes inline tags (i.e. {@link reference} tags) but not regular tags. Each section of plain text is represented as a Tag of kind "Text". Inline tags are represented as a SeeTag of kind "link". The sentence ends at the first period that is followed by a space, tab, or a line terminator, at the first tagline, or at closing of a HTML block element (


).    
inConstructor ( ) : boolean Return true if this Taglet is used in constructor documentation.
inField ( ) : boolean Return true if this Taglet is used in field documentation.
inMethod ( ) : boolean Return true if this Taglet is used in method documentation.
inOverview ( ) : boolean Return true if this Taglet is used in overview documentation.
inPackage ( ) : boolean Return true if this Taglet is used in package documentation.
inType ( ) : boolean Return true if this Taglet is used in class or interface documentation.
inlineTags ( $formatter ) : Tag[] For documentation comment with embedded @link tags, return the array of tags. Within a comment string "This is an example of inline tags for a documentaion comment {@link Doc commentlabel}", where inside the inner braces, the first "Doc" carries exactly the same syntax as a SeeTag and the second "commentlabel" is label for the HTML link, will return an array of tags with first element as tag with comment text "This is an example of inline tags for a documentation comment" and second element as SeeTag with referenced class as "Doc" and the label for the HTML link as "commentlabel".
isInlineTag ( ) : boolean Return true if this Taglet is an inline tag.
name ( ) : str Get name of this tag.
setParent ( &$element ) Set this tags parent
tag ( $name, $text, &$root ) Constructor
text ( $doclet ) : str Get the value of the tag as raw data, without any text processing applied.

Method Details

_getInlineTags() public méthode

Parse out inline tags from within a text string
public _getInlineTags ( $text ) : Tag[]
Résultat Tag[]

displayEmpty() public méthode

Return true if this Taglet should be outputted even if it has no text content.
public displayEmpty ( ) : boolean
Résultat boolean

displayName() public méthode

Get display name of this tag.
public displayName ( ) : str
Résultat str

firstSentenceTags() public méthode

If PEAR compatibility mode is on, the first double line break also ends the first sentence. PEAR documentation advocates ommiting the period from the first sentence.
public firstSentenceTags ( $formatter ) : Tag[]
Résultat Tag[] An array of Tags representing the first sentence of the comment

inConstructor() public méthode

Return true if this Taglet is used in constructor documentation.
public inConstructor ( ) : boolean
Résultat boolean

inField() public méthode

Return true if this Taglet is used in field documentation.
public inField ( ) : boolean
Résultat boolean

inMethod() public méthode

Return true if this Taglet is used in method documentation.
public inMethod ( ) : boolean
Résultat boolean

inOverview() public méthode

Return true if this Taglet is used in overview documentation.
public inOverview ( ) : boolean
Résultat boolean

inPackage() public méthode

Return true if this Taglet is used in package documentation.
public inPackage ( ) : boolean
Résultat boolean

inType() public méthode

Return true if this Taglet is used in class or interface documentation.
public inType ( ) : boolean
Résultat boolean

inlineTags() public méthode

For documentation comment with embedded @link tags, return the array of tags. Within a comment string "This is an example of inline tags for a documentaion comment {@link Doc commentlabel}", where inside the inner braces, the first "Doc" carries exactly the same syntax as a SeeTag and the second "commentlabel" is label for the HTML link, will return an array of tags with first element as tag with comment text "This is an example of inline tags for a documentation comment" and second element as SeeTag with referenced class as "Doc" and the label for the HTML link as "commentlabel".
public inlineTags ( $formatter ) : Tag[]
Résultat Tag[] Array of tags with inline tags.

isInlineTag() public méthode

Return true if this Taglet is an inline tag.
public isInlineTag ( ) : boolean
Résultat boolean

name() public méthode

Get name of this tag.
public name ( ) : str
Résultat str

setParent() public méthode

Set this tags parent
public setParent ( &$element )

tag() public méthode

Constructor
public tag ( $name, $text, &$root )

text() public méthode

Get the value of the tag as raw data, without any text processing applied.
public text ( $doclet ) : str
Résultat str

Property Details

$_name public_oe property

The name of the tag.
public str $_name
Résultat str

$_parent public_oe property

Reference to the elements parent.
public programElementDoc $_parent
Résultat programElementDoc

$_root public_oe property

Reference to the root element.
public rootDoc $_root
Résultat rootDoc

$_text public_oe property

The value of the tag as raw data, without any text processing applied.
public str $_text
Résultat str