Amanu
Projektmanagement für Selbstständige und Freelancer
AmaMailDoc Class Reference

Public Member Functions

 __construct ($type, $id, $additional=NULL)
 
 getPreview ()
 
 send ()
 

Private Member Functions

 getInfo ()
 
 getRecipient ()
 
 getAttachments ()
 
 getContent ()
 
 getSubject ()
 

Detailed Description

This class generates an amaMail with specific content and attachement based on a thing that should be sent

This file is part of the project codename "AMANUENSIS"

Author
Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de

Constructor & Destructor Documentation

__construct (   $type,
  $id,
  $additional = NULL 
)

Constructs a new AmaMailDoc

Parameters
$type- the type of the thing that should be send, e.g. offer
$id- the id of the thing
$additional- some additional text that can be added to the mail

Member Function Documentation

getPreview ( )

Returns a preview path

Returns
string
send ( )

Sends the constructed mail

getInfo ( )
private

Gathers the info

Returns
array
Exceptions
Exception- if the thing is not found
getRecipient ( )
private

Gathers Recipient info

Returns
array with 'mail' and 'name'
Exceptions
Exception
getAttachments ( )
private

Gathers the Attachment path and ensures it existence

Returns
array
getContent ( )
private

Gathers the mail content

Returns
string
getSubject ( )
private

Generates the Mails subject

Returns
string

The documentation for this class was generated from the following file: