PHP Класс tag

Наследование: extends CI_Model
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
_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.

Описание методов

_getInlineTags() публичный Метод

Parse out inline tags from within a text string
public _getInlineTags ( $text ) : Tag[]
Результат Tag[]

displayEmpty() публичный Метод

Return true if this Taglet should be outputted even if it has no text content.
public displayEmpty ( ) : boolean
Результат boolean

displayName() публичный Метод

Get display name of this tag.
public displayName ( ) : str
Результат str

firstSentenceTags() публичный Метод

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[]
Результат Tag[] An array of Tags representing the first sentence of the comment

inConstructor() публичный Метод

Return true if this Taglet is used in constructor documentation.
public inConstructor ( ) : boolean
Результат boolean

inField() публичный Метод

Return true if this Taglet is used in field documentation.
public inField ( ) : boolean
Результат boolean

inMethod() публичный Метод

Return true if this Taglet is used in method documentation.
public inMethod ( ) : boolean
Результат boolean

inOverview() публичный Метод

Return true if this Taglet is used in overview documentation.
public inOverview ( ) : boolean
Результат boolean

inPackage() публичный Метод

Return true if this Taglet is used in package documentation.
public inPackage ( ) : boolean
Результат boolean

inType() публичный Метод

Return true if this Taglet is used in class or interface documentation.
public inType ( ) : boolean
Результат boolean

inlineTags() публичный Метод

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[]
Результат Tag[] Array of tags with inline tags.

isInlineTag() публичный Метод

Return true if this Taglet is an inline tag.
public isInlineTag ( ) : boolean
Результат boolean

name() публичный Метод

Get name of this tag.
public name ( ) : str
Результат str

setParent() публичный Метод

Set this tags parent
public setParent ( &$element )

tag() публичный Метод

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

text() публичный Метод

Get the value of the tag as raw data, without any text processing applied.
public text ( $doclet ) : str
Результат str

Описание свойств

$_name публичное свойство

The name of the tag.
public str $_name
Результат str

$_parent публичное свойство

Reference to the elements parent.
public programElementDoc $_parent
Результат programElementDoc

$_root публичное свойство

Reference to the root element.
public rootDoc $_root
Результат rootDoc

$_text публичное свойство

The value of the tag as raw data, without any text processing applied.
public str $_text
Результат str