Open Journal Systems  2.4.4
 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 ArticleMailTemplate.inc.php.

Member Function Documentation

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

Constructor.

Parameters
$articleobject
$emailTypestring optional
$localestring optional
$enableAttachmentsboolean optional
$journalobject optional
$includeSignatureboolean optional
$ignorePostedDataboolean optional
See Also
MailTemplate::MailTemplate()

Definition at line 43 of file ArticleMailTemplate.inc.php.

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

Definition at line 65 of file ArticleMailTemplate.inc.php.

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

ArticleMailTemplate::sendWithParams (   $paramArray,
  $request 
)
See Also
parent::sendWithParams()
Parameters
$paramArrayarray
$requestobject

Definition at line 83 of file ArticleMailTemplate.inc.php.

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

ArticleMailTemplate::setJournal (   $journal)

Set the journal this message is associated with.

Parameters
$journalobject

Definition at line 101 of file ArticleMailTemplate.inc.php.


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