Skip to content

Commit

Permalink
Refs #4041, #4040, moved viewdatatable cloud logic to cloud visualiza…
Browse files Browse the repository at this point in the history
…tion. Removed cloud viewdatatable.
  • Loading branch information
Benaka Moorthi committed Aug 4, 2013
1 parent ac3a25c commit cf8d0a5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 82 deletions.
2 changes: 1 addition & 1 deletion core/ViewDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static public function factory($defaultType = null, $apiAction = false, $control
$type = Common::getRequestVar('viewDataTable', $defaultType, 'string');
switch ($type) {
case 'cloud':
$result = new ViewDataTable\Cloud();
$result = new ViewDataTable('\\Piwik\\Visualization\\JqplotGraph\\Cloud');
break;

case 'graphPie':
Expand Down
81 changes: 0 additions & 81 deletions core/ViewDataTable/Cloud.php

This file was deleted.

16 changes: 16 additions & 0 deletions core/Visualization/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,28 @@
*/
class Cloud extends DataTableVisualization
{
const ID = 'cloud';

/** Used by integration tests to make sure output is consistent. */
public static $debugDisableShuffle = false;

protected $wordsArray = array();
public $truncatingLimit = 50;

public function __construct($view)
{
$view->defaultPropertiesTo($this->getDefaultPropertyValues());
}

public static function getDefaultPropertyValues()
{
return array(
'show_offset_information' => false,
'show_exclude_low_population' => false,
'display_logo_instead_of_label' => false,
);
}

/**
* Assign word to array
* @param string $word
Expand Down

0 comments on commit cf8d0a5

Please sign in to comment.