class GeolocatorService (View source)

Properties

protected Application $app
protected EntityManagerInterface $em
protected ObjectRepository $repo

Methods

__construct(Application $app, EntityManagerInterface $em)

Initialize the instance.

Geolocator|null
getByID(int $id)

Get a geolocator library given its ID.

Geolocator|null
getByHandle(string $handle)

Get a geolocator library given its handle.

Geolocator|null
getCurrent()

Get the currently active geolocator library.

Geolocator|null
setCurrent(Geolocator $geolocator = null)

Set the currently active geolocator library.

getList()

Get all the installed geolocator libraries.

EntityManagerInterface
getEntityManager()

No description

Details

__construct(Application $app, EntityManagerInterface $em)

Initialize the instance.

Parameters

Application $app
EntityManagerInterface $em

Geolocator|null getByID(int $id)

Get a geolocator library given its ID.

Parameters

int $id

Return Value

Geolocator|null

Geolocator|null getByHandle(string $handle)

Get a geolocator library given its handle.

Parameters

string $handle

Return Value

Geolocator|null

Geolocator|null getCurrent()

Get the currently active geolocator library.

Return Value

Geolocator|null

Geolocator|null setCurrent(Geolocator $geolocator = null)

Set the currently active geolocator library.

Parameters

Geolocator $geolocator

Return Value

Geolocator|null

Geolocator[] getList()

Get all the installed geolocator libraries.

Return Value

Geolocator[]

EntityManagerInterface getEntityManager()

No description

Return Value

EntityManagerInterface

GeolocatorControllerInterface getController(Geolocator $geolocator)

No description

Parameters

Geolocator $geolocator

Return Value

GeolocatorControllerInterface