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


class GOOGLELOCATION_CMP_GroupsWidget extends GOOGLELOCATION_CMP_MapWidget
{    
    public function 
__constructBASE_CLASS_WidgetParameter $params )
    {
        if ( !
PEEP::getPluginManager()->isPluginActive('groups') )
        {
            
$this->setVisible('false');
            return;
        }
        
        
parent::__construct$params );
        
/*@var $map GOOGLELOCATION_CMP_Map*/
        
$map $this->getComponent("map");
        
$map->setMapOption('minZoom'1);
    }
    
    protected function 
assignListBASE_CLASS_WidgetParameter $params )
    {
        
$groupId $params->additionalParamList['entityId'];
        
        
$list GROUPS_BOL_Service::getInstance()->findGroupUserIdList($groupId'everybody');   

        
        return 
$list;
    }
}
Онлайн: 1
Реклама