* */ /** * Обрабатывает блок облака тегов для избранного * * @package application.blocks * @since 1.0 */ class BlockTagsPersonalTopic extends Block { /** * Запуск обработки */ public function Exec() { /** * Пользователь авторизован? */ if ($oUserCurrent = $this->User_getUserCurrent()) { if (!($oUser = $this->getParam('user'))) { $oUser = $oUserCurrent; } /** * Получаем список тегов пользователя */ $aTags = $this->Favourite_GetGroupTags($oUser->getId(), 'topic', true, 70); /** * Расчитываем логарифмическое облако тегов */ $this->Tools_MakeCloud($aTags); /** * Устанавливаем шаблон вывода */ $this->Viewer_Assign('tags', $aTags, true); $this->Viewer_Assign('user', $oUser, true); $this->Viewer_Assign('activeTag', $this->getParam('activeTag'), true); $this->SetTemplate('component@tags-personal.cloud'); } } }