mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
42 lines
1.2 KiB
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 BlockActivityFriends extends Block {
|
|
/**
|
|
* Запуск обработки
|
|
*/
|
|
public function Exec() {
|
|
/**
|
|
* пользователь авторизован?
|
|
*/
|
|
if ($oUserCurrent = $this->User_getUserCurrent()) {
|
|
/**
|
|
* Получаем и прогружаем необходимые переменные в шаблон
|
|
*/
|
|
$aFriends = $this->User_getUsersFriend($oUserCurrent->getId());
|
|
$aUserSubscribes = $this->Stream_getUserSubscribes($oUserCurrent->getId());
|
|
$this->Viewer_Assign('aStreamSubscribedUsers', $aUserSubscribes);
|
|
$this->Viewer_Assign('aStreamFriends', $aFriends['collection']);
|
|
}
|
|
}
|
|
} |