Swift_Mime_SimpleMimeEntity::charsetChanged PHP Method

charsetChanged() public method

Receive notification that the charset of this entity, or a parent entity has changed.
public charsetChanged ( string $charset )
$charset string
    public function charsetChanged($charset)
    {
        $this->notifyCharsetChanged($charset);
    }

Usage Example

Example #1
0
 /**
  * Set the character set of this entity.
  *
  * @param string $charset
  *
  * @return Swift_Mime_MimePart
  */
 public function setCharset($charset)
 {
     $this->_setHeaderParameter('Content-Type', 'charset', $charset);
     if ($charset !== $this->_userCharset) {
         $this->_clearCache();
     }
     $this->_userCharset = $charset;
     parent::charsetChanged($charset);
     return $this;
 }