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

Public Member Functions

 __construct ($content=null)
 
 prepend ($content)
 
 append ($content)
 
 get ()
 
- 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 ()
 

Protected Member Functions

 _getContent ()
 
- Protected Member Functions inherited from Hoa\Mail\Content\Content
 _getContent ()
 

Protected Attributes

 $_content = null
 
- Protected Attributes inherited from Hoa\Mail\Content\Content
 $_headers = []
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\Mail\Content\Content
static formatHeaders (Array $headers)
 
static getAddress ($contact)
 
static getDomain ($contact)
 

Detailed Description

Class .

This class represents a text.

Definition at line 47 of file Text.php.

Constructor & Destructor Documentation

Hoa\Mail\Content\Text::__construct (   $content = null)

Construct a text content.

Parameters
string$contentContent.
Returns
void

Definition at line 64 of file Text.php.

65  {
66  parent::__construct();
67  $this['content-transfer-encoding'] = 'quoted-printable';
68  $this['content-type'] = 'text/plain; charset=utf-8';
69  $this->append($content);
70 
71  return;
72  }
append($content)
Definition: Text.php:93
$content
Definition: Hoa.php:119

Here is the call graph for this function:

Member Function Documentation

Hoa\Mail\Content\Text::_getContent ( )
protected

Get final “plain” content.

Returns
string

Definition at line 115 of file Text.php.

116  {
117  return Encoder\QuotedPrintable::encode($this->get());
118  }
static encode($string, $isHeaderValue=false)

Here is the call graph for this function:

Hoa\Mail\Content\Text::append (   $content)

Append content (in memory order, i.e. from left-to-right only).

Parameters
string$contentContent.
Returns
string

Definition at line 93 of file Text.php.

94  {
95  $this->_content .= $content;
96 
97  return $this;
98  }
$content
Definition: Hoa.php:119

Here is the caller graph for this function:

Hoa\Mail\Content\Text::get ( )

Get the content.

Returns
string

Definition at line 105 of file Text.php.

106  {
107  return $this->_content;
108  }
Hoa\Mail\Content\Text::prepend (   $content)

Prepend content (in memory order, i.e. from left-to-right only).

Parameters
string$contentContent.
Returns
string

Definition at line 80 of file Text.php.

81  {
82  $this->_content = $content . $this->_content;
83 
84  return $this;
85  }
$content
Definition: Hoa.php:119

Member Data Documentation

Hoa\Mail\Content\Text::$_content = null
protected

Definition at line 54 of file Text.php.


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