2015-02-08 08:03:55 +01:00
|
|
|
<?php
|
|
|
|
|
2015-11-21 07:17:29 +01:00
|
|
|
if (!class_exists('Widget')) {
|
|
|
|
return;
|
2015-05-09 16:33:12 +02:00
|
|
|
}
|
2015-02-08 08:03:55 +01:00
|
|
|
|
|
|
|
/**
|
2015-05-09 16:33:12 +02:00
|
|
|
* A list of tags associated with blog posts.
|
2015-02-08 08:03:55 +01:00
|
|
|
*
|
|
|
|
* @package blog
|
|
|
|
*/
|
2015-11-21 07:17:29 +01:00
|
|
|
class TagCloudWidget extends BlogTagsWidget implements MigratableObject
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
private static $db = array(
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
'Limit' => 'Int',
|
|
|
|
'Sortby' => 'Varchar',
|
|
|
|
);
|
2015-02-08 08:03:55 +01:00
|
|
|
|
2015-11-21 07:17:29 +01:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
private static $only_available_in = array(
|
|
|
|
'none',
|
|
|
|
);
|
2015-02-08 08:03:55 +01:00
|
|
|
|
2015-11-21 07:17:29 +01:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function canCreate($member = null)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2015-02-08 08:03:55 +01:00
|
|
|
|
2015-11-21 07:17:29 +01:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
$this->ClassName = 'BlogTagsWidget';
|
|
|
|
$this->write();
|
|
|
|
return "Migrated " . $this->Title . " widget";
|
|
|
|
}
|
2015-05-09 16:33:12 +02:00
|
|
|
}
|