1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-02 22:45:02 +03:00
ifhub.club/classes/blocks/BlockStreamConfig.class.php

44 lines
1.3 KiB
PHP
Raw Normal View History

2011-06-06 14:58:19 +03:00
<?php
/*-------------------------------------------------------
*
* LiveStreet Engine Social Networking
* Copyright © 2008 Mzhelskiy Maxim
*
*--------------------------------------------------------
*
* Official site: www.livestreet.ru
* Contact e-mail: rus.engine@gmail.com
*
* GNU General Public License, version 2:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
---------------------------------------------------------
*/
2011-06-06 14:58:19 +03:00
/**
* Блок настройки ленты активности
*
* @package blocks
* @since 1.0
*/
class BlockStreamConfig extends Block {
/**
* Запуск обработки
*/
2011-06-06 14:58:19 +03:00
public function Exec() {
/**
* пользователь авторизован?
*/
if ($oUserCurrent = $this->User_getUserCurrent()) {
/**
* Получаем и прогружаем необходимые переменные в шаблон
*/
$aTypesList = $this->Stream_getTypesList($oUserCurrent->getId());
$this->Viewer_Assign('aStreamTypesList', $aTypesList);
$aUserSubscribes = $this->Stream_getUserSubscribes($oUserCurrent->getId());
$aFriends = $this->User_getUsersFriend($oUserCurrent->getId());
$this->Viewer_Assign('aStreamSubscribedUsers', $aUserSubscribes);
$this->Viewer_Assign('aStreamFriends', $aFriends['collection']);
}
}
}