Class MatukioHelperUtilsEvents
todo | cleanup this mess.. All left overs from Seminar, not much of use |
---|---|
since | 1.0.0 |
package | MatukioEvents |
calculateBookedPlaces(object $row, integer $status = 1
) : \stdClass
object
integer
\stdClass
calculateBookedPlacesRecurring(object $event) : \stdClass
object
The event
\stdClass
checkRequiredFieldValues($text, $art = 'leer'
)
createNewEventNumber(integer $year) : string
integer
\exception |
- if the database queries fail |
---|
string
duplicateEvent(integer $eventId) : integer
since | 7.0.0 |
---|
integer
Event Id (Not Recurring)
integer
generateCSVFile(boolean $backend, integer $cid= 0
, array $bookings= null
, object $event= null
) : mixed | string
boolean
integer
array
object
\Exception |
- on DB error |
---|
mixed
string
- CSV codegetAccessLevelName(integer $id) : mixed
since | __DEPLOY_VERSION__ |
---|
integer
Id of the access level
mixed
getCalendarButton(object $event, string $template = "modern"
) : string
object
string
string
getCleanedMailText($text)
getEmailBody($event, $booking, $user, $closeHtml = true
)
getEventEditTemplate(integer $event_id= 0
, $beginDate= true
, $save= true
) : object
integer
object
- The eventgetEventIdForUuid(string $uuid) : mixed
string
The unique event id
mixed
getEventRecurring(integer|array $id, $isEventId= false
, $isArray= false
, $published= false
, $access= false
, $orderBy= null
) : mixed
.
integer
array
TODO Update for access and published -> map to model
mixed
getEventsRecurringOnEventId(integer $eventId) : mixed
integer
mixed
getFormatedCurrency(double $value, object $event, $spans = false
) : string
double
object
string
getIdArrayFromEvents(array $events) : array
since | 7.0.0 |
---|
array
Array of recurring Events
array
getLocation(integer $id, integer $published = 1
) : mixed
integer
integer
mixed
getLocations(integer $published= 1
, string $order_by= "title ASC"
) : mixed
integer
string
mixed
getOrganizerList(integer $userId, integer $frontend) : mixed
since | 7.0.0 |
---|
integer
User selected
integer
Are we in the frontend
mixed
getParseLevel(array $bookings, \JUser $user) : string
array
\JUser
string
getPlaceSelect($freeplaces, object $event, integer $nr, integer $selected= 0
, $class= ""
, $zero= true
) : mixed
object
integer
integer
mixed
getTemplateListSelect($vorlage, $art)
increaseEventHitCounter(integer $event_id)
integer
\Exception |
---|
isFullyBooked(integer $maxPupil, integer $bookedPupil) : boolean
since | 7.0.0 |
---|
integer
Max number of pupil
integer
Booked pupil
boolean
isViewTeilnehmer(\JUser $user, Object $event, boolean $isBooked) : boolean
\JUser
Object
boolean
boolean
- Can the user view the participants?publishEvent(integer $eventId, integer $publish = 1
) : void
since | 7.0.0 |
---|
integer
The Event Id (NOT recurring)
integer
Publish the even (1 = yes / 0 = no)
removeEvent(integer $eventId) : void
since | 7.0.0 |
---|
integer
Event Id (NOT Recurring)
saveEvent(boolean $frontend = false
) : boolean | \JTable
since | 7.0.0 |
---|
boolean
\Exception |
on store errors |
---|
boolean
\JTable
The created EventsendBookingConfirmationMail(object $event, integer $uid, integer $art, boolean $cancel= false
, object $booking= null
, boolean $sendInvoice= true
, $activeOnly= false
, $isNew= true
) : void
$art: 1: booking confirmation 2: cancel confirmation (user) 3: cancel confirmation (admin) 4: deleted 5: published 6: certificated 7: certificate revoked 8: max number reached 9: republished event 10: canceld 11: updated 12: confirmation 13: confirmation to organizer with CSV file 14: info to organizer 15: invoice email
todo | update, rewrite and optimize.. Biggest mess |
---|
object
integer
integer
boolean
object
boolean
\Exception |
---|
sendNewEventMail(object $event)
since | 6.0.7 |
---|
object
The event
UNLIMITED = 99999 : integer