![]() |
TeamSpeak 3 PHP Framework
1.1.16
Copyright © Planet TeamSpeak. All rights reserved.
|
Renders nodes used in HTML-based TeamSpeak 3 viewers. More...
Public Member Functions | |
__construct ($iconpath="images/viewer/", $flagpath=null, $ftclient=null, $pattern=null) | |
The TeamSpeak3_Viewer_Html constructor. | |
fetchObject (TeamSpeak3_Node_Abstract $node, array $siblings=array()) | |
Returns the code needed to display a node in a TeamSpeak 3 viewer. | |
Protected Member Functions | |
getContainerIdent () | |
Returns a unique identifier for the current node which can be used as a HTML id property. | |
getContainerClass () | |
Returns a dynamic string for the current container element which can be used as a HTML class property. | |
getContainerSummary () | |
Returns the ID of the current node which will be used as a summary element for the container element. | |
getRowClass () | |
Returns a dynamic string for the current row element which can be used as a HTML class property. | |
getPrefixClass () | |
Returns a string for the current prefix element which can be used as a HTML class property. | |
getPrefix () | |
Returns the HTML img tags to display the prefix of the current node. | |
getCorpusClass () | |
Returns a string for the current corpus element which can be used as a HTML class property. | |
getCorpusTitle () | |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Abstract object. | |
getCorpusIcon () | |
Returns a HTML img tag which can be used to display the status icon for a TeamSpeak_Node_Abstract object. | |
getCorpusName () | |
Returns a string for the current corpus element which contains the display name for the current TeamSpeak_Node_Abstract object. | |
getSuffixClass () | |
Returns a string for the current suffix element which can be used as a HTML class property. | |
getSuffixIcon () | |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Abstract object. | |
getSuffixIconServer () | |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Server object. | |
getSuffixIconChannel () | |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Channel object. | |
getSuffixIconClient () | |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Client object. | |
getSuffixFlag () | |
Returns a HTML img tag which can be used to display the country flag for a TeamSpeak_Node_Client object. | |
getImage ($name, $text="", $class=null, $iconpath=TRUE, $flagpath=FALSE) | |
Returns the code to display a custom HTML img tag. | |
TeamSpeak3_Viewer_Html::__construct | ( | $iconpath = "images/viewer/" , |
|
$flagpath = null , |
|||
$ftclient = null , |
|||
$pattern = null |
|||
) |
The TeamSpeak3_Viewer_Html constructor.
string | $iconpath | |
string | $flagpath | |
string | $ftclient | |
string | $pattern |
Definition at line 107 of file Html.php.
TeamSpeak3_Viewer_Html::fetchObject | ( | TeamSpeak3_Node_Abstract | $node, |
array | $siblings = array() |
||
) |
Returns the code needed to display a node in a TeamSpeak 3 viewer.
TeamSpeak3_Node_Abstract | $node | |
array | $siblings |
Definition at line 126 of file Html.php.
References TeamSpeak3_Helper_String\factory(), getContainerClass(), getContainerIdent(), getContainerSummary(), getCorpusClass(), getCorpusIcon(), getCorpusName(), getCorpusTitle(), getPrefix(), getPrefixClass(), getRowClass(), getSuffixClass(), getSuffixFlag(), and getSuffixIcon().
|
protected |
Returns a unique identifier for the current node which can be used as a HTML id property.
Definition at line 156 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns a dynamic string for the current container element which can be used as a HTML class property.
Definition at line 167 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns the ID of the current node which will be used as a summary element for the container element.
Definition at line 178 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns a dynamic string for the current row element which can be used as a HTML class property.
Definition at line 189 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns a string for the current prefix element which can be used as a HTML class property.
Definition at line 200 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns the HTML img tags to display the prefix of the current node.
Definition at line 210 of file Html.php.
References getImage().
Referenced by fetchObject().
|
protected |
Returns a string for the current corpus element which can be used as a HTML class property.
If the current node is a channel spacer the class string will contain additional class names to allow further customization of the content via CSS.
Definition at line 236 of file Html.php.
References TeamSpeak3_Node_Channel\isSpacer(), TeamSpeak3\SPACER_ALIGN_CENTER, TeamSpeak3\SPACER_ALIGN_LEFT, TeamSpeak3\SPACER_ALIGN_RIGHT, TeamSpeak3\SPACER_DASHDOTDOTLINE, TeamSpeak3\SPACER_DASHDOTLINE, TeamSpeak3\SPACER_DASHLINE, TeamSpeak3\SPACER_DOTLINE, and TeamSpeak3\SPACER_SOLIDLINE.
Referenced by fetchObject().
|
protected |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Abstract object.
Definition at line 290 of file Html.php.
References TeamSpeak3_Helper_Convert\codec(), TeamSpeak3_Helper_Convert\groupType(), TeamSpeak3_Node_Channel\isSpacer(), TeamSpeak3_Helper_Convert\seconds(), and TeamSpeak3_Helper_Convert\version().
Referenced by fetchObject().
|
protected |
Returns a HTML img tag which can be used to display the status icon for a TeamSpeak_Node_Abstract object.
Definition at line 316 of file Html.php.
References getImage(), and TeamSpeak3_Node_Channel\isSpacer().
Referenced by fetchObject().
|
protected |
Returns a string for the current corpus element which contains the display name for the current TeamSpeak_Node_Abstract object.
Definition at line 329 of file Html.php.
References TeamSpeak3\GROUP_NAMEMODE_BEFORE, TeamSpeak3\GROUP_NAMEMODE_BEHIND, TeamSpeak3_Node_Channel\isSpacer(), TeamSpeak3\SPACER_ALIGN_REPEAT, and TeamSpeak3\SPACER_CUSTOM.
Referenced by fetchObject().
|
protected |
Returns a string for the current suffix element which can be used as a HTML class property.
Definition at line 374 of file Html.php.
Referenced by fetchObject().
|
protected |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Abstract object.
Definition at line 385 of file Html.php.
References getSuffixIconChannel(), getSuffixIconClient(), and getSuffixIconServer().
Referenced by fetchObject().
|
protected |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Server object.
Definition at line 407 of file Html.php.
References TeamSpeak3\factory(), getImage(), and TeamSpeak3_Helper_Convert\imageMimeType().
Referenced by getSuffixIcon().
|
protected |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Channel object.
Definition at line 455 of file Html.php.
References TeamSpeak3\factory(), getImage(), TeamSpeak3_Helper_Convert\imageMimeType(), and TeamSpeak3_Node_Channel\isSpacer().
Referenced by getSuffixIcon().
|
protected |
Returns the HTML img tags which can be used to display the various icons for a TeamSpeak_Node_Client object.
Definition at line 525 of file Html.php.
References TeamSpeak3\factory(), getImage(), and TeamSpeak3_Helper_Convert\imageMimeType().
Referenced by getSuffixIcon().
|
protected |
Returns a HTML img tag which can be used to display the country flag for a TeamSpeak_Node_Client object.
Definition at line 634 of file Html.php.
References getImage().
Referenced by fetchObject().
|
protected |
Returns the code to display a custom HTML img tag.
string | $name | |
string | $text | |
string | $class | |
boolean | $iconpath | |
boolean | $flagpath |
Definition at line 654 of file Html.php.
Referenced by getCorpusIcon(), getPrefix(), getSuffixFlag(), getSuffixIconChannel(), getSuffixIconClient(), and getSuffixIconServer().