Class MatukioHelperRendering
Todo move most things to JLayout..
since | 5.0.0 |
---|---|
package | MatukioEvents |
getAcademyLocation(object $event, object $location) : string
object
object
string
The html for the templategetAdditionalDatesDialog(object $event, boolean $small = false
) : string
object
boolean
string
- The htmlgetBetweenFeeText(object $event) : string
object
string
getBookingButton(object $event, \JUser $user, integer $nrbooked, boolean $isbooked, string $class= "btn btn-primary"
, $isWaitlist= false
) : string
object
\JUser
integer
boolean
string
string
- The booking buttongetBookingDetailsButton(object $event, \JUser $user) : string
object
\JUser
string
- the html markup for the btngetCaptcha() : string
string
getCategoryButtons(array $categories, string $filterCategories) : string
array
string
string
- The htmlgetCertificateDialog() : string
string
- the print dialoggetContactDialog(object $event, \JUser $user, object $booking= null
, integer $organizerId= 0
, boolean $participants= false
) : string
object
\JUser
object
integer
boolean
\Exception |
on missing recaptcha |
---|
string
- The HtmlgetCustomFields(object $event, array $customFieldObj) : string
object
array
string
getDatesArray($old = true
) : array
array
getEventDate(object $event, boolean $small= false
, boolean $additionalDates= false
, boolean $multiLine= false
) : string
object
boolean
boolean
boolean
string
getEventImage(object $event, boolean $detail = false
) : string
object
boolean
string
getEventLocation(object $event, array $locations) : string
object
array
\Exception |
(if location does not exist) |
---|
string
getEventMapHeader(string $gmaploc, boolean $eventpage= false
, string $position= null
, boolean $scrollwheel= true
) : string
string
boolean
string
boolean
TODO move to js file
string
getEventSingleLocationLink(object $event, object $location) : string
object
object
string
getEventStatusText(object $event, integer $nrbooked, \JUser $user, boolean $isbooked) : string
object
integer
\JUser
boolean
string
- TextgetEventTicketsTable(object $event, object $bookingInformation) : string
TODO multiple seats and simple fee need move to JLayout too
object
object
string
getEventsMap(object $events, array $locations) : string
TODO update to bounds!
object
array
\Exception |
(if location does not exist) |
---|
string
getFeeText(object $event) : string
object
The event
string
The fee textgetFeesArray() : array
array
getFilesList(object $event, \JUser $user, array $files, boolean $isBooked, array $bookings) : string
object
\JUser
array
boolean
array
string
getFormatedDistance(double $distance, boolean $isMiles = true
) : string
since | 7.0.0 |
---|
double
The distance
boolean
Is it in miles
string
getGmapLocation(object $event, object $locations = null
) : object
object
object
object
- stdclass with gmaploc, lat, lnggetLimitSelect(integer $active) : mixed
integer
mixed
getLocationButtons(array $locations, string $filterLocations) : string
array
string
string
- The htmlgetLogin($pwReset= true
, $usernameReset= true
, $register= true
) : string
string
getNaviDates(integer $active) : string
integer
string
getNaviFees(integer $active) : string
integer
string
getNotBookableText(\JUser $user, object $event, object $booked, boolean $isBooked) : string
\JUser
object
object
boolean
string
- text onlygetOrganizer(object $event, array $organizers) : string
object
array
string
getOrganizerButtons(array $organizers, string $filterOrganizers) : string
array
string
string
- The htmlgetPagination(integer $total, integer $limit, integer $limitstart) : string
integer
integer
integer
string
- The pagination htmlgetParticipantsViewParticipantsButton(object $event, \JUser $user, boolean $isbooked, object $bookingInformation) : string
object
The event
\JUser
The user
boolean
The status of the user
object
Informations about the booking status (how many etc.)
string
- The html for the buttongetPrintDialog($srcbutton = '.btn-print'
) : void
getRatingDialog() : string
string
- the print dialoggetSearch(string $current_search) : string
string
string
getSocialMedia(object $event, string $lat= ''
, string $lng= ''
, object $location= null
, object $organizer= null
, $layout= "social.share"
) : string
object
string
string
object
object
string
- The social mediagetTagFormField(string $value) : string
string
The value for the tags field
string
The html of the tags form fieldgetViewBookingsButton(object $event, \JUser $user, \stdClass $booked) : string
object
\JUser
\stdClass
string
- The participants buttongetXMLFormField(string $name, string $type, string $value, string $class= "form-control"
, string $directory= ""
, $format= ''
) : string
string
string
string
string
string
The directory
string
isBookable(object $event, \JUser $user, integer $nrbooked, boolean $isbooked) : boolean
object
\JUser
integer
boolean
boolean
- True if bookable, false if notrenderModule(string $position) : void
string
$event_tax : object
null