TagCloud
in package
A widget for rendering a tag cloud, based off the Tag instances in the database.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- getPopTags() : array<string|int, mixed>
- Get the array of popular tags.
- render() : string
- Render the tag cloud and return all of the HTML links in a single paragraph.
Properties
$logger
Trace logger.
private
static Logger
$logger
= null
Tags
$popTags
A hash array of popular tags.
private
array<string|int, mixed>
$popTags
= array()
Tags
Methods
__construct()
Constructor.
public
__construct( $limit[, $cacheKey = '' ]) : mixed
Parameters
- $limit :
-
The maximum amount of tags to include in the cloud.
- $cacheKey : = ''
-
Set this optional value to attempt to store the tag cloud array in the available cache for 24hrs (cache.provider.name).
Tags
getPopTags()
Get the array of popular tags.
public
getPopTags() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>render()
Render the tag cloud and return all of the HTML links in a single paragraph.
public
render([ $minLinkSize = 8 ][, $maxLinkSize = 20 ][, $target = '' ]) : string
Parameters
- $minLinkSize : = 8
-
The minimum font size for any tag link, in points.
- $maxLinkSize : = 20
-
The maximum font size for any tag link, in points.
- $target : = ''
-
The target attribute for the links