Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ArticleMailTemplate Class Reference
Inheritance diagram for ArticleMailTemplate:
MailTemplate PKPMailTemplate Mail DataObject

Public Member Functions

 ArticleMailTemplate ($article, $emailKey=null, $locale=null, $enableAttachments=null, $journal=null, $includeSignature=true, $ignorePostedData=false)
 log ($request=null)
 send ($request=null)
 sendWithParams ($paramArray, $request)
 setJournal ($journal)
- Public Member Functions inherited from MailTemplate
 assignParams ($paramArray=array())
 displayEditForm ($formActionUrl, $hiddenFormParams=null, $alternateTemplate=null, $additionalParameters=array())
 MailTemplate ($emailKey=null, $locale=null, $enableAttachments=null, $journal=null, $includeSignature=true, $ignorePostedData=false)
 send ($clearAttachments=true)
- Public Member Functions inherited from PKPMailTemplate
 _clearAttachments ($userId)
 _handleAttachments ($userId)
 addPersistAttachment ($temporaryFile)
 assignParams ($paramArray=array())
 clearRecipients ($clearHeaders=true)
 displayEditForm ($formActionUrl, $hiddenFormParams=null, $alternateTemplate=null, $additionalParameters=array())
 getAddressFieldsEnabled ()
 hasErrors ()
 isEnabled ()
 PKPMailTemplate ($emailKey=null, $locale=null, $enableAttachments=null, $includeSignature=true)
processAddresses ($currentList, &$newAddresses)
 send ($clearAttachments=true)
 sendWithParams ($paramArray)
 setAddressFieldsEnabled ($addressFieldsEnabled)
- Public Member Functions inherited from Mail
 addAttachment ($filePath, $fileName= '', $contentType= '', $contentDisposition= 'attachment')
 addBcc ($email, $name= '')
 addCc ($email, $name= '')
 addHeader ($name, $content)
 addPrivateParam ($name, $value)
 addRecipient ($email, $name= '')
 clearAllRecipients ()
 encodeDisplayName ($displayName, $send=false)
 getAddressArrayString ($addresses, $includeNames=true, $send=false)
getAttachments ()
 getBccs ()
 getBccString ()
 getBody ()
 getCcs ()
 getCcString ()
 getContentType ()
 getEnvelopeSender ()
 getFrom ()
 getFromString ($send=false)
 getHeaders ()
 getRecipients ()
 getRecipientString ()
 getSubject ()
 hasAttachments ()
 Mail ()
 promoteCcsIfNoRecipients ()
 send ()
 setBccs ($bccs)
 setBody ($body)
 setCcs ($ccs)
 setContentType ($contentType)
 setEnvelopeSender ($envelopeSender)
 setFrom ($email, $name= '')
 setHeaders (&$headers)
 setPrivateParams ($privateParams)
 setRecipients ($recipients)
 setSubject ($subject)
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter (&$metadataAdapter)
 DataObject ($callHooks=true)
extractMetadata (&$metadataSchema)
 getAdditionalMetadataFieldNames ()
getAllData ()
getData ($key, $locale=null)
 getHasLoadableAdapters ()
 getId ()
 getLocaleMetadataFieldNames ()
getLocalizedData ($key)
 getMetadataFieldNames ($translated=true)
 getSetMetadataFieldNames ($translated=true)
getSupportedExtractionAdapters ()
getSupportedInjectionAdapters ()
getSupportedMetadataSchemas ()
 hasData ($key, $locale=null)
 injectMetadata (&$metadataDescription)
 removeSupportedMetadataAdapter ($metadataSchemaName)
 setAllData (&$data)
 setData ($key, $value, $locale=null)
 setHasLoadableAdapters ($hasLoadableAdapters)
 setId ($id)
upcastTo (&$targetObject)

Additional Inherited Members

- Public Attributes inherited from DataObject
 $_data = array()

Detailed Description

Subclass of MailTemplate for sending emails related to articles.

This allows for article-specific functionality like logging, etc.

Definition at line 21 of file

Member Function Documentation

ArticleMailTemplate::ArticleMailTemplate (   $article,
  $emailKey = null,
  $locale = null,
  $enableAttachments = null,
  $journal = null,
  $includeSignature = true,
  $ignorePostedData = false 


$emailTypestring optional
$localestring optional
$enableAttachmentsboolean optional
$journalobject optional
$includeSignatureboolean optional
$ignorePostedDataboolean optional
See Also

Definition at line 43 of file

ArticleMailTemplate::log (   $request = null)
ArticleMailTemplate::send (   $request = null)
See Also

Definition at line 65 of file

References PKPMailTemplate\_clearAttachments(), and log().

ArticleMailTemplate::sendWithParams (   $paramArray,
See Also

Definition at line 83 of file

References Mail\getBody(), Mail\getSubject(), Mail\send(), Mail\setBody(), and Mail\setSubject().

ArticleMailTemplate::setJournal (   $journal)

Set the journal this message is associated with.


Definition at line 101 of file

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