Вход Регистрация
Файл: upload/module/event/include/component/block/attending.class.php
Строк: 107
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond_Benc
 * @package         Phpfox_Component
 * @version         $Id: attending.class.php 3342 2011-10-21 12:59:32Z Raymond_Benc $
 */
class Event_Component_Block_Attending extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
$iPageSize = 6;
        
        
$aEvent = $this->getParam('aEvent');
        
        list(
$iCnt, $aInvites) = Phpfox::getService('event')->getInvites($aEvent['event_id'], 1, 1, $iPageSize);
        list(
$iAwaitingCnt, $aAwaitingInvites) = Phpfox::getService('event')->getInvites($aEvent['event_id'], 0, 1, $iPageSize);
        list(
$iMaybeCnt, $aMaybeInvites) = Phpfox::getService('event')->getInvites($aEvent['event_id'], 2, 1, $iPageSize);
        list(
$iNotAttendingCnt, $aNotAttendingInvites) = Phpfox::getService('event')->getInvites($aEvent['event_id'], 3, 1, $iPageSize);
                
        
$this->template()->assign(array(
                
'sHeader' => ($iCnt ? $iCnt . ' ' .Phpfox::getPhrase('event.attending') : Phpfox::getPhrase('event.attending')),
                
'aInvites' => $aInvites,
                
'aAwaitingInvites' => $aAwaitingInvites,
                
'iAwaitingCnt' => $iAwaitingCnt,
                
'aMaybeInvites' => $aMaybeInvites,
                
'iMaybeCnt' => $iMaybeCnt,
                
'iNotAttendingCnt' => $iNotAttendingCnt,
                
'aNotAttendingInvites' => $aNotAttendingInvites,
                
'aFooter' => array(
                    
Phpfox::getPhrase('event.view_guest_list') => '#'
                
)
            )
        );        
        
        return 
'block';
    }
    
    
/**
     * Garbage collector. Is executed after this class has completed
     * its job and the template has also been displayed.
     */
    
public function clean()
    {
        ((
$sPlugin = Phpfox_Plugin::get('event.component_block_attending_clean')) ? eval($sPlugin) : false);
    }
}

?>
Онлайн: 1
Реклама