Hoa central
Public Member Functions | Public Attributes | List of all members
Hoa\Mail\Content\Alternative Class Reference
Inheritance diagram for Hoa\Mail\Content\Alternative:

Public Member Functions

 __construct (Array $contents=[])
 
- Public Member Functions inherited from Hoa\Mail\Content\Message
 __construct ()
 
 addContent (Content $content)
 
 getContent ()
 
 getRecipients ()
 
 getFormattedContent ($headers=false)
 
- Public Member Functions inherited from Hoa\Mail\Content\Content
 __construct ()
 
 offsetExists ($header)
 
 offsetGet ($header)
 
 offsetSet ($header, $value)
 
 offsetUnset ($header)
 
 getHeaders ()
 
 getFormattedContent ($headers=true)
 
 getId ()
 
 getIdUrl ()
 
 __toString ()
 

Public Attributes

const BOUNDARY = '@hoaproject-alternative-'
 
- Public Attributes inherited from Hoa\Mail\Content\Message
const BOUNDARY = '@hoaproject-'
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\Mail\Content\Content
static formatHeaders (Array $headers)
 
static getAddress ($contact)
 
static getDomain ($contact)
 
- Protected Member Functions inherited from Hoa\Mail\Content\Message
 _getContent ()
 
 _getRecipients ($line, Array &$out)
 
- Protected Member Functions inherited from Hoa\Mail\Content\Content
 _getContent ()
 
- Protected Attributes inherited from Hoa\Mail\Content\Message
 $_content = []
 
- Protected Attributes inherited from Hoa\Mail\Content\Content
 $_headers = []
 

Detailed Description

Class .

Represent an alternative content.

Definition at line 47 of file Alternative.php.

Constructor & Destructor Documentation

Hoa\Mail\Content\Alternative::__construct ( Array  $contents = [])

Constructor.

Parameters
array$contentsAlternative contents.
Returns
void

Definition at line 64 of file Alternative.php.

65  {
66  foreach ($contents as $content) {
67  $this->addContent($content);
68  }
69 
70  $this['content-type'] = 'multipart/alternative';
71 
72  return;
73  }
$content
Definition: Hoa.php:119
addContent(Content $content)
Definition: Message.php:87

Here is the call graph for this function:

Member Data Documentation

const Hoa\Mail\Content\Alternative::BOUNDARY = '@hoaproject-alternative-'

Boundary hash prefix.

string

Definition at line 54 of file Alternative.php.


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