Class MatukioModelEventlist

since 6.0.8
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.

Get the ordering

getOrderBy(\Joomla\Registry\Tests\Stubs\JRegistry $params) : mixed | string
since 6.0.8

Parameters

$params

\Joomla\Registry\Tests\Stubs\JRegistry

The params

Returns

mixedstring

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

getTable(string $type = 'Matukio', string $prefix = 'Table', 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

Override of the get list count, to allow usage with out _getListCount

_getListCount(\JDatabaseQuery|string $query) : integer | mixed
since 6.0.14

Parameters

$query

\JDatabaseQuerystring

The Query Object

Returns

integermixed

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 only booked events

buildBookedQuery(\JDatabaseQuery $query, integer $userId) : void
since 6.0.8

Parameters

$query

\JDatabaseQuery

The query

$userId

integer

The user id

Extend the query to filter for custom fields

buildCustomFieldFilter(\JDatabaseQuery $query, string $filter) : void
since 6.0.13

Parameters

$query

\JDatabaseQuery

The query

$filter

string

JSON Encoded filter values (array)

Extend the query to filter for dates

buildDateQuery(\JDatabaseQuery $query, integer $dateId) : void
since 6.0.8

Parameters

$query

\JDatabaseQuery

The query

$dateId

integer

The dateid (Magic number.. see method)

Extend the query to filter for fees

buildFeeQuery(\JDatabaseQuery $query, integer $feeId) : void
since 6.0.8

Parameters

$query

\JDatabaseQuery

The query

$feeId

integer

The fee (Magin Number)

Extend the query to get events near lat / long

buildGeolocationQuery(\JDatabaseQuery $query, string $json, $radius = null) : void
since 6.0.10

Parameters

$query

\JDatabaseQuery

The query

$json

string

The json encoded coordinates

$radius

Extend the query to get Hotspots events near lat / long

buildHotspotsGeolocationQuery(\JDatabaseQuery $query, string $json, $radius = 10) : void
since 6.0.10

Parameters

$query

\JDatabaseQuery

The query

$json

string

The json encoded coordinates

$radius

Extend the query to get only own events

buildOwnEventsQuery(\JDatabaseQuery $query, integer $userId) : void
since 6.0.8

Parameters

$query

\JDatabaseQuery

The query

$userId

integer

The user id

Extend the query to filter for search word

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

Parameters

$query

\JDatabaseQuery

The query

$search

string

The search string

Get the cateogry ids

getCategory(\Joomla\Registry\Registry $params) : mixed | string
since 6.0.8

Parameters

$params

\Joomla\Registry\Registry

Returns

mixedstring

Class MatukioModelEventlist

since 2.2.5
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 = 'Events', 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).