public function __construct($header)
{
$this->header = $header;
$parts = preg_split('/, /', $header);
$this->elements = array();
foreach ($parts as $part) {
list($key, $value) = explode('=', $part);
$this->elements[$key] = '"' === $value[0] ? substr($value, 1, -1) : $value;
}
}