\Radar\ConnectFilter

Summary

Methods
Properties
Constants
addGroup()
addCountry()
addCity()
addYear()
addMonth()
addDay()
addDate()
addCategory()
addPrice()
getQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$query
N/A

Properties

$query

$query : array

Type

array — Query stack.

Methods

addGroup()

addGroup(integer  $id) 

Filter by group.

Parameters

integer $id

Presently requires the internal node ID, not the uuid.

addCountry()

addCountry(string  $country) 

Filter by country.

Parameters

string $country

Country code. Generally ISO, but there are additions. @todo Make a query or a list for this.

addCity()

addCity(string  $city) 

Filter by city.

Parameters

string $city

Name of city.

addYear()

addYear(  $year = 'now') 

Filter by year.

Parameters

$year

addMonth()

addMonth(string  $month = 'now', string  $year = 'now') 

Filter by month.

Parameters

string $month

Optional: month in MM numeric format. Default current month.

string $year

Optional: year in YYYY format. Default current year.

addDay()

addDay(  $day = 'now', string  $month = 'now', string  $year = 'now') 

Filter by day.

Parameters

$day
string $month

Optional: month in MM numeric format. Default current month.

string $year

Optional: year in YYYY format. Default current year.

addDate()

addDate(\DateTime  $date) 

Filter by date.

Parameters

\DateTime $date

addCategory()

addCategory(  $category) 

Filter by category.

Parameters

$category

addPrice()

addPrice(string  $price) 

Filter by price.

Parameters

string $price

'free entrance', 'by donation', other strings entered as free text.

getQuery()

getQuery() 

Return the query array.