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 = ow::getRouter()->urlForRoute('googlelocation_user_list', array('lat' => $this->lat, 'lng' => $this->lng, 'hash' => $hash)); $this->label = OW::getLanguage()->text('googlelocation', 'map_user_list_view_all_button_label', array('count' => count($IdList))); } }
public function __construct($IdList, $lat, $lng, $backUri = null) { $this->IdList = $IdList; $this->lat = (double) $lat; $this->lng = (double) $lng; $this->count = count($IdList); $this->setBackUri($backUri); if (count($IdList) > self::DISPLAY_COUNT) { $hash = GOOGLELOCATION_BOL_LocationService::getInstance()->saveEntityListToSession($IdList); $this->display = true; $this->label = OW::getLanguage()->text('googlelocation', 'map_user_list_view_all_button_label', array('count' => count($IdList))); $this->url = ow::getRouter()->urlForRoute('googlelocation_user_list', array('lat' => $this->lat, 'lng' => $this->lng, 'hash' => $hash)); } parent::__construct(); $this->template = OW::getPluginManager()->getPlugin('googlelocation')->getCmpViewDir() . 'map_entity_list.html'; }