|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilGeoLocationFileMockRepository:
Collaboration diagram for ilGeoLocationFileMockRepository:Public Member Functions | |
| createGeoLocation (string $a_title, float $a_latitude, float $a_longitude, \DateTimeImmutable $a_expiration_timestamp) | |
| Create a new geo location entry. More... | |
| getGeoLocationById (int $a_id) | |
| Get a single geo location, identified by its id. More... | |
| getGeoLocationsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for reading an array of geo locations which have a given attribute. More... | |
| ifGeoLocationExistsById (int $a_id) | |
| Example for checking if a geo location (one or more) with a given attribute exists. More... | |
| ifAnyGeoLocationExistsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for checking if a geo location (one or more) with a given attribute exists. More... | |
| updateGeoLocation (ilGeoLocation $a_obj) | |
| Update all attributes of a given geo location. More... | |
| updateGeoLocationTimestampByCoordinates (float $a_searched_latitude, float $a_searched_longitude, \DateTimeImmutable $a_update_timestamp) | |
| Example for updating multiple objects at once. More... | |
| deleteGeoLocation (int $a_id) | |
| Delete single geo location identified by its id. More... | |
| deleteGeoLocationsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for a condition based deletion of multiple geo locations. More... | |
| deleteExpiredGeoLocations () | |
| Example for a condition based deletion of multiple geo locations. More... | |
| createGeoLocation (string $a_title, float $a_latitude, float $a_longitude, \DateTimeImmutable $a_expiration_timestamp) | |
| Create a new geo location entry. More... | |
| getGeoLocationById (int $a_id) | |
| Get a single geo location, identified by its id. More... | |
| getGeoLocationsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for reading an array of geo locations which have a given attribute. More... | |
| ifGeoLocationExistsById (int $a_id) | |
| Example for checking if geo location with a certain id exists. More... | |
| ifAnyGeoLocationExistsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for checking if a geo location (one or more) with a given attribute exists. More... | |
| updateGeoLocation (ilGeoLocation $a_obj) | |
| Example for updating all attributes of a given geo location. More... | |
| updateGeoLocationTimestampByCoordinates (float $a_searched_latitude, float $a_searched_longitude, \DateTimeImmutable $a_update_timestamp) | |
| Example for updating multiple objects at once. More... | |
| deleteGeoLocation (int $a_id) | |
| Exaple for deleting single geo location identified by its id. More... | |
| deleteGeoLocationsByCoordinates (float $a_latitude, float $a_longitude) | |
| Example for a condition based deletion of multiple geo locations. More... | |
| deleteExpiredGeoLocations () | |
| Example for a condition based deletion of multiple geo locations. More... | |
Protected Member Functions | |
| readFileAndReturnAsList ($file) | |
| Protected function. More... | |
| writeGeoLocationListToFile ($file, $list) | |
| Protected function. More... | |
Definition at line 3 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::createGeoLocation | ( | string | $a_title, |
| float | $a_latitude, | ||
| float | $a_longitude, | ||
| \DateTimeImmutable | $a_expiration_timestamp | ||
| ) |
Create a new geo location entry.
Implements ilGeoLocationRepository.
Definition at line 9 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::deleteExpiredGeoLocations | ( | ) |
Example for a condition based deletion of multiple geo locations.
Implements ilGeoLocationRepository.
Definition at line 202 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::deleteGeoLocation | ( | int | $a_id | ) |
Delete single geo location identified by its id.
Implements ilGeoLocationRepository.
Definition at line 157 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::deleteGeoLocationsByCoordinates | ( | float | $a_latitude, |
| float | $a_longitude | ||
| ) |
Example for a condition based deletion of multiple geo locations.
Implements ilGeoLocationRepository.
Definition at line 177 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::getGeoLocationById | ( | int | $a_id | ) |
Get a single geo location, identified by its id.
Implements ilGeoLocationRepository.
Definition at line 38 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::getGeoLocationsByCoordinates | ( | float | $a_latitude, |
| float | $a_longitude | ||
| ) |
Example for reading an array of geo locations which have a given attribute.
Implements ilGeoLocationRepository.
Definition at line 55 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::ifAnyGeoLocationExistsByCoordinates | ( | float | $a_latitude, |
| float | $a_longitude | ||
| ) |
Example for checking if a geo location (one or more) with a given attribute exists.
Implements ilGeoLocationRepository.
Definition at line 91 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::ifGeoLocationExistsById | ( | int | $a_id | ) |
Example for checking if a geo location (one or more) with a given attribute exists.
Implements ilGeoLocationRepository.
Definition at line 73 of file ilGeoLocationFileMockRepository.php.
|
protected |
Protected function.
Just for development purpose
Definition at line 229 of file ilGeoLocationFileMockRepository.php.
| ilGeoLocationFileMockRepository::updateGeoLocation | ( | ilGeoLocation | $a_obj | ) |
Update all attributes of a given geo location.
Implements ilGeoLocationRepository.
Definition at line 108 of file ilGeoLocationFileMockRepository.php.
References ilGeoLocation\getExpirationAsTimestamp(), ilGeoLocation\getId(), ilGeoLocation\getLatitude(), ilGeoLocation\getLongitude(), and ilGeoLocation\getTitle().
Here is the call graph for this function:| ilGeoLocationFileMockRepository::updateGeoLocationTimestampByCoordinates | ( | float | $a_searched_latitude, |
| float | $a_searched_longitude, | ||
| \DateTimeImmutable | $a_update_timestamp | ||
| ) |
Example for updating multiple objects at once.
Implements ilGeoLocationRepository.
Definition at line 134 of file ilGeoLocationFileMockRepository.php.
|
protected |
Protected function.
Just for development purpose
Definition at line 241 of file ilGeoLocationFileMockRepository.php.