PHP Class Piwik\Plugins\CoreVisualizations\Visualizations\Cloud

The generated tag cloud can be in PHP format, or in HTML. Inspired from Derek Harvey (www.derekharvey.co.uk)
Inheritance: extends Piwik\Plugin\Visualization
显示文件 Open project: piwik/piwik

Public Properties

Property Type Description
$debugDisableShuffle Used by system tests to make sure output is consistent.
$truncatingLimit

Protected Properties

Property Type Description
$wordsArray

Public Methods

Method Description
addWord ( string $word, integer $value = 1 ) : string Assign word to array
afterAllFiltersAreApplied ( )
beforeRender ( )
getDefaultConfig ( )

Protected Methods

Method Description
getClassFromPercent ( $percent ) : integer Get the class range using a percentage
shuffleCloud ( ) Shuffle associated names in array

Private Methods

Method Description
getCloudValues ( )
getPercentage ( $popularity, $maxValue )
truncateWordIfNeeded ( $word ) : string

Method Details

addWord() public method

Assign word to array
public addWord ( string $word, integer $value = 1 ) : string
$word string
$value integer
return string

afterAllFiltersAreApplied() public method

beforeRender() public method

public beforeRender ( )

getClassFromPercent() protected method

Get the class range using a percentage
protected getClassFromPercent ( $percent ) : integer
$percent
return integer class

getDefaultConfig() public static method

public static getDefaultConfig ( )

shuffleCloud() protected method

Shuffle associated names in array
protected shuffleCloud ( )

Property Details

$debugDisableShuffle public_oe static_oe property

Used by system tests to make sure output is consistent.
public static $debugDisableShuffle

$truncatingLimit public_oe property

public $truncatingLimit

$wordsArray protected_oe property

protected $wordsArray