/** */ public function __get($name) { switch ($name) { case 'params': $params = new Horde_Support_CaseInsensitiveArray(parent::__get($name)); foreach ($params as $key => $val) { if (!isset($this[$key])) { unset($params[$key]); } } return $params->getArrayCopy(); case 'ptype': $val = $this->value; return substr($val, 0, strpos($val, '/')); case 'stype': $val = $this->value; return substr($val, strpos($val, '/') + 1); case 'type_charset': $val = $this->value; foreach ($this->_escapeParams(array_filter(array('charset' => $this['charset']))) as $k2 => $v2) { $val .= '; ' . $k2 . '=' . $v2; } return $val; } return parent::__get($name); }
/** */ public function __get($name) { $val = parent::__get($name); switch ($name) { case 'full_value': $val = parent::__get($name); if (substr(ltrim($val), 0, 1) === ';') { $val = 'attachment' . $val; } break; } return $val; }