Abstract base class representing a single part of a parsed header.
- author Zaahid Bateson
Methods |
public __construct(ZBateson Sets up dependencies. |
public __toString() : string Returns the value of the part (which is a string).
|
public getValue() : ?string Returns the part's value.
|
public ignoreSpacesAfter() : bool Returns true if spaces after this part should be ignored. True is only |
public ignoreSpacesBefore() : bool Returns true if spaces before this part should be ignored. True is only |
Properties |
protected $charsetConverter = NULL
|
protected $value = NULL
|
Methods |
protected convertEncoding(string $str, string $from = 'ISO-8859-1', bool $force = false) : string Ensures the encoding of the passed string is set to UTF-8. The method does nothing if the passed $from charset is UTF-8 already, or
|