Вход Регистрация
Файл: plugins/google_map_location/components/map_event_list.php
Строк: 40
<?php

class GOOGLELOCATION_CMP_MapEventList extends GOOGLELOCATION_CMP_MapEntityList
{
    public function 
__construct$IdList$lat$lng$backUri null )
    {
        
parent::__construct($IdList$lat$lng$backUri);
        
        if ( 
count($IdList) > self::DISPLAY_COUNT )
        {
            
$hash GOOGLELOCATION_BOL_LocationService::getInstance()->saveEntityListToSession($IdList);

            
$this->display true;
            
$this->url peep::getRouter()->urlForRoute('googlelocation_event_list', array( 'lat' => $this->lat'lng' => $this->lng'hash' => $hash ) );
            
$this->label PEEP::getLanguage()->text('googlelocation''map_user_list_view_all_button_label', array( 'count' => count($IdList) ) );
        }
    }
    
    protected function 
getListCmp()
    {
        
$bridge = new GOOGLELOCATION_CLASS_EventBridge();
        
        
$data $bridge->getAvatarData(array_slice($this->IdList0self::DISPLAY_COUNT));
        
$new = new GOOGLELOCATION_CMP_MiniAvatarList($data);
        
        switch(
true)
        {
            case 
$this->count <= 8:
                    
$new->setCustomCssClass('peep_big_avatar');
                break;
            default:
                    
//$new->setCustomCssClass(BASE_CMP_MiniAvatarUserList::CSS_CLASS_MINI_AVATAR);
                
break;
        }
        
        return 
$new;
    }
}
Онлайн: 1
Реклама