123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
-
-
-
-
-
- class Swift_Mime_Headers_UnstructuredHeader
- extends Swift_Mime_Headers_AbstractHeader
- {
-
-
-
- private $_value;
-
-
-
- public function __construct($name, Swift_Mime_HeaderEncoder $encoder, Swift_Mime_Grammar $grammar)
- {
- $this->setFieldName($name);
- $this->setEncoder($encoder);
- parent::__construct($grammar);
- }
-
-
-
- public function getFieldType()
- {
- return self::TYPE_TEXT;
- }
-
-
-
- public function setFieldBodyModel($model)
- {
- $this->setValue($model);
- }
-
-
-
- public function getFieldBodyModel()
- {
- return $this->getValue();
- }
-
-
-
- public function getValue()
- {
- return $this->_value;
- }
-
-
-
- public function setValue($value)
- {
- $this->clearCachedValueIf($this->_value != $value);
- $this->_value = $value;
- }
-
-
-
- public function getFieldBody()
- {
- if (!$this->getCachedValue())
- {
- $this->setCachedValue(
- $this->encodeWords($this, $this->_value)
- );
- }
- return $this->getCachedValue();
- }
-
- }
|