Class MatukioHelperCforms

since 7.0.0
package MatukioEvents

 Methods

Get the fields for the booking overview fields

getBookingsOverviewFields(integer $eventId) 
Static
since __DEPLOY_VERSION__

Parameters

$eventId

integer

Event id

Get the fields for a event

getFields(integer $eventId) : array | null
Static
since 7.0.0

Parameters

$eventId

integer

Event Id (not recurring)

Returns

arraynull

Get the Form for the event

getFormIdForEvent(integer $eventId) : integer | string
Static
since 7.0.0

Parameters

$eventId

integer

Event Id (not recurring!)

Returns

integerstring

Get the real form pages count

getFormPagesCount(object $form, object $event) : integer
Static
since 7.0.0

Parameters

$form

object

Form

$event

object

Event

Returns

integer

Get the step heading (for payment page etc.)

getStepHeading(object $form) : string
Static
since __DEPLOY_VERSION__

Parameters

$form

object

Form

Returns

string

Get the ticket layout file

getTicketLayout(object $event) : string
Static
since 7.0.0

Parameters

$event

object

Event

Returns

string

Prepare the form

prepareForm(string $formHtml, object $event, object $booking, integer $freePlaces, $bookedPlaces = array()) : string
Static
since 7.0.0

Parameters

$formHtml

string

Form Html

$event

object

The Event

$booking

object

Booking (if any)

$freePlaces

integer

Free Places left

$bookedPlaces

Exceptions

\Exception

Returns

string

 Constants

 

Table for the booking field

TABLE_FIELD = '#__matukio_bookingform_field' 
type string
since 7.0.0
 

Table for the booking form

TABLE_FORM = '#__matukio_bookingform_form' 
type string
since 7.0.0