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

14 lines
531 B
PHP
Raw Normal View History

2011-06-06 14:58:19 +03:00
<?php
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);
}
}
}