Class MatukioHelperMicrodata

since 5.2.0
package MatukioEvents

 Methods

Get the email body

getEmailBody(string $start, object $tmpl) : string
Static
since 3.0.0

Parameters

$start

string

The start

$tmpl

object

The template

Returns

string

Get the whole email body for HTML

getHtmlMail(string $body) : string
Static
since __DEPLOY_VERSION__

Parameters

$body

string

Body Content

Returns

string

Generates the html skeleton for the emails send by Matukio

getHtmlMailSkeleton() : string
Static

TODO move to email object

Returns

string

Generates the html skeleton close for the emails send by Matukio

getHtmlMailSkeletonClose() : string
Static

Returns

string

Get the Publisher

getPublisher(object $event) : \JUser
Static
since 3.0.0

Parameters

$event

object

THe event

Returns

\JUser

Notify organizer over an event publishing / unpublishing

notifyOrganizerPublish(integer $eventId, boolean $publish = true, $event = null) : boolean
Static
since __DEPLOY_VERSION__

Parameters

$eventId

integer

Event Id

$publish

boolean

Publish / Unpublish

$event

Returns

boolean

Send certificate email (including certificate pdf)

sendCertificateMail(object $event, object $booking) 
Static

Parameters

$event

object

The event

$booking

object

The booking

Exceptions

\Exception

Function to send an email, contains error handling (parameters simliar to phpmailer)

sendMail(string $from, $sender, mixed $recipient, string $subject, string $body, boolean $html = true, mixed $cc = null, mixed $bcc = null, mixed $attachment = null, mixed $replyTo = null, mixed $replyToName = null) : boolean
Static
since 11.1

Parameters

$from

stringstring

From email address

$sender

$recipient

mixed

Recipient email address(es)

$subject

string

email subject

$body

string

Message body

$html

boolean

false = plain text, true = HTML

$cc

mixed

CC email address(es)

$bcc

mixed

BCC email address(es)

$attachment

mixed

Attachment file name(s)

$replyTo

mixed

Reply to email address(es)

$replyToName

mixed

Reply to name(s)

Returns

booleanTrue on success

Sends an mail to all three possible recipients (Participant, organizer, BCC email)

sendMailAll(\JMail $mailer, string $recipient, string $subject, string $body, object $publisher) : void
Static

Parameters

$mailer

\JMail

The JMail Object

$recipient

string

The recipient email (participant)

$subject

string

The subject

$body

string

The body

$publisher

object

The publisher object (with name and mail)

Exceptions

\Exception