Class MatukioModelLocations

since 6.1.2
package MatukioEvents

 Methods

the constructor

__construct(array $config = array()
since 6.1.2

Parameters

$config

array

An optional associative array of configuration settings.

Get the context

getContext() : null | string

Returns

nullstring

Method to get a JDatabaseQuery object for retrieving the data set from a database.

getListQuery() : \JDatabaseQuery

Returns

\JDatabaseQueryA JDatabaseQuery object to retrieve the data set.

Returns a reference to the a Table object, always creating it.

getTable(string $type = 'Locations', string $prefix = 'MatukioTable', array $config = array()) : \JTable

Parameters

$type

string

The table type to instantiate

$prefix

string

A prefix for the table class name. Optional.

$config

array

Configuration array for model. Optional.

Returns

\JTableA database object

Method to auto-populate the model state.

populateState(string $ordering = "r.begin", string $direction = "ASC") : void

This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.

Note. Calling getState in this method will result in recursion.

Parameters

$ordering

string

An optional ordering field.

$direction

string

An optional direction (asc|desc).

Extend the query to get events near lat / long

buildGeolocationQuery(\JDatabaseQuery $query, string $json, $radius = 10) : void
since 6.1.2

Parameters

$query

\JDatabaseQuery

The query

$json

string

The json encoded coordinates

$radius

Extend the query to filter for search word

buildSearchQuery(\JDatabaseQuery $query, string $search) : void
since 6.1.2

Parameters

$query

\JDatabaseQuery

The query

$search

string

The search string

 Properties

 

Location

$location : object

Default

null
since 6.1.2

Class MatukioModelLocations

since 3.0.0
package MatukioEvents

 Methods

the constructor Constructor.

__construct(array $config = array()

Parameters

$config

array

An optional associative array of configuration settings.

Get the context

getContext() : null | string

Returns

nullstring

Method to get a JDatabaseQuery object for retrieving the data set from a database.

getListQuery() : \JDatabaseQuery

Returns

\JDatabaseQueryA JDatabaseQuery object to retrieve the data set.

Returns a reference to the a Table object, always creating it.

getTable(string $type = 'Locations', string $prefix = 'MatukioTable', array $config = array()) : \JTable

Parameters

$type

string

The table type to instantiate

$prefix

string

A prefix for the table class name. Optional.

$config

array

Configuration array for model. Optional.

Returns

\JTableA database object

Method to auto-populate the model state.

populateState(string $ordering = null, string $direction = null) : void

This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.

Note. Calling getState in this method will result in recursion.

Parameters

$ordering

string

An optional ordering field.

$direction

string

An optional direction (asc|desc).