Zend_Mail::_storeHeader PHP Méthode

_storeHeader() protected méthode

Adds a header to this message. If append is true and the header already exists, raises a flag indicating that the header should be appended.
protected _storeHeader ( string $headerName, string $value, boolean $append = false )
$headerName string
$value string
$append boolean
    protected function _storeHeader($headerName, $value, $append = false)
    {
        if (isset($this->_headers[$headerName])) {
            $this->_headers[$headerName][] = $value;
        } else {
            $this->_headers[$headerName] = array($value);
        }
        if ($append) {
            $this->_headers[$headerName]['append'] = true;
        }
    }