public function raisePostBackEvent($param) { $postBackValue = null; if ($param !== '') { $index = TPropertyValue::ensureInteger($param); $hotspots = $this->getHotSpots(); if ($index >= 0 && $index < $hotspots->getCount()) { $hotspot = $hotspots->itemAt($index); if (($mode = $hotspot->getHotSpotMode()) === THotSpotMode::NotSet) { $mode = $this->getHotSpotMode(); } if ($mode === THotSpotMode::PostBack) { $postBackValue = $hotspot->getPostBackValue(); if ($hotspot->getCausesValidation()) { $this->getPage()->validate($hotspot->getValidationGroup()); } } } } if ($postBackValue !== null) { $this->onClick(new TImageMapEventParameter($postBackValue)); } }