Zend\Tag\Cloud\Decorator\HtmlTag
Simple HTML decorator for tags
Synopsis
class HtmlTag
extends AbstractTag
{
- // members
- protected array $classList;
- protected string $fontSizeUnit;
- protected array $allowedFontSizeUnits;
- protected array $htmlTags;
- protected integer $maxFontSize;
- protected integer $minFontSize;
- // Inherited members from AbstractDecorator
- protected string $encoding;
- protected Escaper $escaper;
- protected array $skipOptions;
- // methods
- public HTMLTag setClassList()
- public array getClassList()
- public HTMLTag setFontSizeUnit()
- public string getFontSizeUnit()
- public HTMLTag setHTMLTags()
- public array getHTMLTags()
- public HTMLTag setMaxFontSize()
- public int getMaxFontSize()
- public HTMLTag setMinFontSize()
- public int getMinFontSize()
- public array render()
- // Inherited methods from AbstractDecorator
- public void __construct()
- public AbstractTag setOptions()
- public string getEncoding()
- public HTMLCloud setEncoding()
- public HtmlCloud setEscaper()
- public Escaper getEscaper()
- protected void validateElementName()
- protected void validateAttributeName()
- protected void wrapTag()
Hierarchy
Members
protected
- $allowedFontSizeUnits
—
array
Allowed fontsize units - $classList
—
array
List of tags which get assigned to the inner element instead of font-sizes. - $encoding — string
- $escaper — Zend\Escaper\Escaper
- $fontSizeUnit
—
string
Unit for the fontsize - $htmlTags
—
array
List of HTML tags - $maxFontSize
—
int
Maximum fontsize - $minFontSize
—
int
Minimum fontsize - $skipOptions
—
array
Option keys to skip when calling setOptions()
Methods
public
- getClassList() — Get class list
- getFontSizeUnit() — Retrieve font size unit
- getHTMLTags() — Get HTML tags map
- getMaxFontSize() — Retrieve maximum font size
- getMinFontSize() — Retrieve minimum font size
- render() — Defined by Tag
- setClassList() — Set a list of classes to use instead of fontsizes
- setFontSizeUnit() — Set the font size unit
- setHTMLTags() — Set the HTML tags surrounding the <a> element
- setMaxFontSize() — Set maximum font size
- setMinFontSize() — Set minimum font size
Inherited from Zend\Tag\Cloud\Decorator\AbstractDecorator
protected
- validateAttributeName() — Validate an HTML attribute name
- validateElementName() — Validate an HTML element name
- wrapTag()
public
- getEncoding() — Get encoding
- getEscaper() — Retrieve Escaper instance
- setEncoding() — Set encoding
- setEscaper() — Set Escaper instance
- setOptions() — Set options from array