BlockUserfeedUsers

Package blocks
Inheritance class BlockUserfeedUsers » Block » LsObject
Since 1.0
Source Code /classes/blocks/BlockUserfeedUsers.class.php
Блок настройки списка пользователей в ленте

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
aParams array Список параметров блока Block
oEngine Engine|null Ядро движка Block

Public Methods

Hide inherited methods

MethodDescriptionDefined By
Exec() Запуск обработки BlockUserfeedUsers
__call() Ставим хук на вызов неизвестного метода и считаем что хотели вызвать метод какого либо модуля Block
__construct() При создании блока передаем в него параметры Block

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
GetParam() Возвращает параметр по имени Block

Method Details

Exec() method
public void Exec()
Source Code: /classes/blocks/BlockUserfeedUsers.class.php#28 (show)
public function Exec() {
    
/**
     * Пользователь авторизован?
     */
    
if ($oUserCurrent $this->User_getUserCurrent()) {
        
/**
         * Получаем необходимые переменные и прогружаем в шаблон
         */
        
$aUserSubscribes $this->Userfeed_getUserSubscribes($oUserCurrent->getId());
        
$aFriends $this->User_getUsersFriend($oUserCurrent->getId());
        
$this->Viewer_Assign('aUserfeedSubscribedUsers'$aUserSubscribes['users']);
        
$this->Viewer_Assign('aUserfeedFriends'$aFriends['collection']);
    }
}

Запуск обработки