1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-29 04:55:02 +03:00
ifhub.club/classes/blocks/BlockStreamConfig.class.php
2011-07-31 16:52:50 +00:00

14 lines
531 B
PHP

<?php
class BlockStreamConfig extends Block {
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);
}
}
}