Class MatukioHelperRoute

since 1.0.0
package MatukioEvents

 Methods

Finds the matching menu entry

_findItem(array $needles) : null
Static

Parameters

$needles

array
  • The needles (id and catid to find)

Returns

null

Get the link to the event edit form

getEventEditRoute(integer $eventId = 0) : string
Static
since 7.0.0

Parameters

$eventId

integer

Event Id (optional, new event else wise)

Returns

string

Gets the routing to an event

getEventRoute(integer $id, integer $catid = 0, integer $art = 0, integer $uid = 0, string $uuid = "") : string
Static

Parameters

$id

integer
  • The event id

$catid

integer
  • The category id

$art

integer
  • The art (0 = normal, 1 = my bookings, 2 = my offers)

$uid

integer
  • The booking id (opt)

$uuid

string
  • The unique booking id

Returns

string

Gets the eventlist route (Without JRoute!)

getEventlistRoute(integer $catid = 0, integer $art = 0) : string
Static

Parameters

$catid

integer
  • The category

$art

integer
  • The type

Returns

string

Get ItemId for event-list

getItemIdForEventList(integer $catid = 0) : string
Static
since 7.0.0

Parameters

$catid

integer

Category id

Returns

string

Gets the itemId for the routing

getItemIdForRouting(integer $id = 0, integer $catid = 0) : null | string
Static

Parameters

$id

integer
  • The id

$catid

integer
  • The catid

Returns

nullstring

Get the link to the form submission

getSubmitRoute($uuid = null) : string
Static

Parameters

$uuid

Returns

string

Translates an internal Joomla URL to a humanly readible URLin THE FRONTEND.

routeFrontend(string $url, boolean $xhtml = true, integer $ssl = null) : string
Static
since 11.1

Parameters

$url

string

Absolute or Relative URI to Joomla resource.

$xhtml

boolean

Replace & by & for XML compilance.

$ssl

integer

Secure state for the resolved URI. 1: Make URI secure using global secure site URI. 0: Leave URI in the same secure state as it was passed to the function. -1: Make URI unsecure using the global unsecure site URI.

Returns

string- The translated humanly readible URL.

Checks if we have a single menu entry for the given event

_findSingleEvent(integer $id) : null | string
Static

Parameters

$id

integer
  • The id

Exceptions

\Exception

Returns

nullstring

 Properties

 

$ritem

$ritem 

Default

null
Static