1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00
ifhub.club/application/classes/blocks/BlockUserfeedUsers.class.php

42 lines
1.2 KiB
PHP

<?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
*
---------------------------------------------------------
*/
/**
* Блок настройки списка пользователей в ленте
*
* @package blocks
* @since 1.0
*/
class BlockUserfeedUsers extends Block {
/**
* Запуск обработки
*/
public function Exec() {
/**
* Пользователь авторизован?
*/
if ($oUserCurrent = $this->User_getUserCurrent()) {
/**
* Получаем необходимые переменные и прогружаем в шаблон
*/
$aFriends = $this->User_getUsersFriend($oUserCurrent->getId());
$aUserSubscribes = $this->Userfeed_getUserSubscribes($oUserCurrent->getId());
$this->Viewer_Assign('aUserfeedSubscribedUsers', $aUserSubscribes['users']);
$this->Viewer_Assign('aUserfeedFriends', $aFriends['collection']);
}
}
}