XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
UnstructuredHeader.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of SwiftMailer.
5
* (c) 2004-2009 Chris Corbyn
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
11
//@require 'Swift/Mime/Headers/AbstractHeader.php';
12
//@require 'Swift/Mime/HeaderEncoder.php';
13
20
class
Swift_Mime_Headers_UnstructuredHeader
21
extends
Swift_Mime_Headers_AbstractHeader
22
{
23
29
private
$_value
;
30
36
public
function
__construct
($name,
Swift_Mime_HeaderEncoder
$encoder)
37
{
38
$this->
setFieldName
($name);
39
$this->
setEncoder
($encoder);
40
}
47
public
function
getFieldType
()
48
{
49
return
self::TYPE_TEXT;
50
}
51
57
public
function
setFieldBodyModel
($model)
58
{
59
$this->
setValue
($model);
60
}
61
67
public
function
getFieldBodyModel
()
68
{
69
return
$this->
getValue
();
70
}
71
76
public
function
getValue
()
77
{
78
return
$this->_value
;
79
}
80
85
public
function
setValue
($value)
86
{
87
$this->
clearCachedValueIf
($this->_value != $value);
88
$this->_value = $value;
89
}
90
95
public
function
getFieldBody
()
96
{
97
if
(!$this->
getCachedValue
())
98
{
99
$this->
setCachedValue
(
100
str_replace(
'\\'
,
'\\\\'
, $this->
encodeWords
(
101
$this, $this->_value, -1, $this->
getCharset
(), $this->
getEncoder
()
102
))
103
);
104
}
105
return
$this->
getCachedValue
();
106
}
107
108
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
swift
classes
Swift
Mime
Headers
UnstructuredHeader.php
Generated on Sun Mar 17 2013 20:41:06 for XOOPS RMCommon Utilities by
1.8.3.1