1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/application/classes/blocks/BlockUserfeedUsers.class.php

39 lines
1 KiB
PHP
Raw Normal View History

2011-05-30 17:14:56 +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-05-30 17:14:56 +03:00
/**
* Блок настройки списка пользователей в ленте
*
* @package blocks
* @since 1.0
*/
class BlockUserfeedUsers extends Block {
/**
* Запуск обработки
*/
2011-05-30 17:14:56 +03:00
public function Exec() {
/**
* Пользователь авторизован?
*/
2011-07-31 10:08:27 +03:00
if ($oUserCurrent = $this->User_getUserCurrent()) {
/**
* Получаем необходимые переменные и прогружаем в шаблон
*/
2014-07-19 19:50:52 +03:00
$this->Viewer_Assign('users', $this->Userfeed_getUserSubscribes($oUserCurrent->getId())['users']);
2011-07-31 10:08:27 +03:00
}
}
2011-05-30 17:14:56 +03:00
}