concrete/src/Geolocator/GeolocatorService.php
public function setCurrent(Geolocator $geolocator = null)
    {
        $currentGeolocator = $this->getCurrent();
        if ($currentGeolocator !== $geolocator) {
            if ($currentGeolocator !== null) {
                $currentGeolocator->setIsActive(false);
                if ($currentGeolocator->getGeolocatorID() !== null) {
                    $this->em->flush($currentGeolocator);
                }
            }
            if ($geolocator !== null) {
                $geolocator->setIsActive(true);
                if ($geolocator->getGeolocatorID() !== null) {
                    $this->em->flush($geolocator);
                }
            }
        }
    }
public function setCurrent(Geolocator $geolocator = null)
    {
        $currentGeolocator = $this->getCurrent();
        if ($currentGeolocator !== $geolocator) {
            if ($currentGeolocator !== null) {
                $currentGeolocator->setIsActive(false);
                if ($currentGeolocator->getGeolocatorID() !== null) {
                    $this->em->flush($currentGeolocator);
                }
            }
            if ($geolocator !== null) {
                $geolocator->setIsActive(true);
                if ($geolocator->getGeolocatorID() !== null) {
                    $this->em->flush($geolocator);
                }
            }
        }
    }
public function setCurrent ( Geolocator $ geolocator = null ) { $ currentGeolocator = $ this -> getCurrent ( ) ; if ( $ currentGeolocator !== $ geolocator ) { if ( $ currentGeolocator !== null ) { $ currentGeolocator -> setIsActive ( false ) ; if ( $ currentGeolocator -> getGeolocatorID ( ) !== null ) { $ this -> em -> flush ( $ currentGeolocator ) ; } } if ( $ geolocator !== null ) { $ geolocator -> setIsActive ( true ) ; if ( $ geolocator -> getGeolocatorID ( ) !== null ) { $ this -> em -> flush ( $ geolocator ) ; } } } }
Set the currently active geolocator library.

@return Geolocator|null
Set the currently active geolocator library .