mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-29 04:55:02 +03:00
14 lines
531 B
PHP
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);
|
|
}
|
|
}
|
|
} |