Definition at line 3 of file ilGeoLocationCalculator.php.
◆ __construct()
◆ calculateTimeTillNextExpiredGeoLocationAt()
ilGeoLocationCalculator::calculateTimeTillNextExpiredGeoLocationAt |
( |
float |
$latitude, |
|
|
float |
$longitude |
|
) |
| |
Definition at line 13 of file ilGeoLocationCalculator.php.
15 $geo_locations = $this->geo_repository->getGeoLocationsByCoordinates($latitude, $longitude);
17 if (count($geo_locations) === 0) {
21 $current = array_shift($geo_locations);
23 foreach ($geo_locations as $geo_location) {
24 if ($current->getExpirationAsTimestamp() >= $geo_location->getExpirationAsTimestamp()) {
25 $current = $geo_location;
◆ $geo_repository
ilGeoLocationCalculator::$geo_repository |
|
protected |
The documentation for this class was generated from the following file: