XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($name, Swift_Mime_HeaderEncoder $encoder, Swift_Encoder $paramEncoder=null) | |
getFieldBody () | |
getFieldType () | |
getParameter ($parameter) | |
getParameters () | |
setCharset ($charset) | |
setParameter ($parameter, $value) | |
setParameters (array $parameters) | |
Public Member Functions inherited from Swift_Mime_Headers_UnstructuredHeader | |
__construct ($name, Swift_Mime_HeaderEncoder $encoder) | |
getFieldBody () | |
getFieldBodyModel () | |
getFieldType () | |
getValue () | |
setFieldBodyModel ($model) | |
setValue ($value) | |
Public Member Functions inherited from Swift_Mime_Headers_AbstractHeader | |
__toString () | |
getCharset () | |
getEncoder () | |
getFieldName () | |
getLanguage () | |
getMaxLineLength () | |
setCharset ($charset) | |
setEncoder (Swift_Mime_HeaderEncoder $encoder) | |
setLanguage ($lang) | |
setMaxLineLength ($lineLength) | |
toString () | |
Protected Member Functions | |
toTokens ($string=null) | |
Private Member Functions | |
_createParameter ($name, $value) | |
_getEndOfParameterValue ($value, $encoded=false, $firstLine=false) | |
Private Attributes | |
$_paramEncoder | |
$_params = array() | |
$_tokenRe | |
Additional Inherited Members | |
Public Attributes inherited from Swift_Mime_Header | |
const | TYPE_DATE = 16 |
const | TYPE_ID = 32 |
const | TYPE_MAILBOX = 8 |
const | TYPE_PARAMETERIZED = 6 |
const | TYPE_PATH = 64 |
const | TYPE_TEXT = 2 |
Definition at line 22 of file ParameterizedHeader.php.
Swift_Mime_Headers_ParameterizedHeader::__construct | ( | $name, | |
Swift_Mime_HeaderEncoder | $encoder, | ||
Swift_Encoder | $paramEncoder = null |
||
) |
Creates a new ParameterizedHeader with $name.
string | $name | |
Swift_Mime_HeaderEncoder | $encoder | |
Swift_Encoder | $paramEncoder,optional |
Definition at line 54 of file ParameterizedHeader.php.
References Swift_Mime_Headers_AbstractHeader\initializeGrammar(), Swift_Mime_Headers_AbstractHeader\setEncoder(), and Swift_Mime_Headers_AbstractHeader\setFieldName().
|
private |
Render a RFC 2047 compliant header parameter from the $name and $value.
string | $name | |
string | $value |
Definition at line 185 of file ParameterizedHeader.php.
References $i, _getEndOfParameterValue(), Swift_Mime_Headers_AbstractHeader\getCharset(), Swift_Mime_Headers_AbstractHeader\getGrammar(), Swift_Mime_Headers_AbstractHeader\getLanguage(), Swift_Mime_Headers_AbstractHeader\getMaxLineLength(), and Swift_Mime_Headers_AbstractHeader\getTokenAsEncodedWord().
Referenced by getFieldBody(), and toTokens().
|
private |
Returns the parameter value from the "=" and beyond.
string | $value | to append |
boolean | $encoded | |
boolean | $firstLine |
Definition at line 255 of file ParameterizedHeader.php.
References Swift_Mime_Headers_AbstractHeader\getCharset(), and Swift_Mime_Headers_AbstractHeader\getLanguage().
Referenced by _createParameter().
Swift_Mime_Headers_ParameterizedHeader::getFieldBody | ( | ) |
Get the value of this header prepared for rendering.
Implements Swift_Mime_Header.
Definition at line 133 of file ParameterizedHeader.php.
References _createParameter().
Swift_Mime_Headers_ParameterizedHeader::getFieldType | ( | ) |
Get the type of Header that this instance represents.
Implements Swift_Mime_Header.
Definition at line 70 of file ParameterizedHeader.php.
Swift_Mime_Headers_ParameterizedHeader::getParameter | ( | $parameter | ) |
Get the value of $parameter.
Implements Swift_Mime_ParameterizedHeader.
Definition at line 102 of file ParameterizedHeader.php.
References getParameters().
Swift_Mime_Headers_ParameterizedHeader::getParameters | ( | ) |
Returns an associative array of parameter names mapped to values.
Definition at line 124 of file ParameterizedHeader.php.
References $_params.
Referenced by getParameter(), and setParameter().
Swift_Mime_Headers_ParameterizedHeader::setCharset | ( | $charset | ) |
Set the character set used in this Header.
string | $charset |
Implements Swift_Mime_Header.
Definition at line 79 of file ParameterizedHeader.php.
Swift_Mime_Headers_ParameterizedHeader::setParameter | ( | $parameter, | |
$value | |||
) |
Set the value of $parameter.
string | $parameter | |
string | $value |
Implements Swift_Mime_ParameterizedHeader.
Definition at line 93 of file ParameterizedHeader.php.
References getParameters(), and setParameters().
Swift_Mime_Headers_ParameterizedHeader::setParameters | ( | array | $parameters | ) |
Set an associative array of parameter names mapped to values.
string[] |
Definition at line 114 of file ParameterizedHeader.php.
References Swift_Mime_Headers_AbstractHeader\clearCachedValueIf().
Referenced by setParameter().
|
protected |
Generate a list of all tokens in the final header. This doesn't need to be overridden in theory, but it is for implementation reasons to prevent potential breakage of attributes.
Definition at line 156 of file ParameterizedHeader.php.
References _createParameter(), and Swift_Mime_Headers_AbstractHeader\generateTokenLines().
|
private |
Definition at line 32 of file ParameterizedHeader.php.
|
private |
Definition at line 39 of file ParameterizedHeader.php.
Referenced by getParameters().
|
private |
Definition at line 46 of file ParameterizedHeader.php.