LINE_LENGTH_SHOULD
LINE_LENGTH_SHOULD = 78 : integer
Line length - no should more - RFC 2822 - 2.1.1
CakePHP Email class.
This class is used for sending Internet Message Format based on the standard outlined in https://www.rfc-editor.org/rfc/rfc2822.txt
Configuration for Email is managed by Email::config() and Email::configTransport(). Email::config() can be used to add or read a configuration profile for Email instances. Once made configuration profiles can be used to re-use across various email messages your application sends.
None found |
$headerCharset : string|null
Charset the email header is sent in If null, the $charset property will be used as default
None found |
None found |
$_viewBuilder : \Cake\View\ViewBuilder
The view builder instance being used.
None found |
$_returnPath : array
The mail that will be used in case of any errors like - Remote mailserver down - Remote user has exceeded his quota - Unknown user
None found |
$_cc : array
Carbon Copy
List of email's that should receive a copy of the email. The Recipient WILL be able to see this list
None found |
$_bcc : array
Blind Carbon Copy
List of email's that should receive a copy of the email. The Recipient WILL NOT be able to see this list
None found |
$_domain : string
Domain for messageId generation.
Needs to be manually set for CLI mailing as env('HTTP_HOST') is empty
None found |
$_headers : array
Associative array of a user defined headers Keys will be prefixed 'X-' as per RFC2822 Section 4.7.5
None found |
None found |
None found |
$_transport : \Cake\Mailer\AbstractTransport|null
The transport instance to use for sending mail.
None found |
$transferEncoding : string|null
The email transfer encoding used.
If null, the $charset property is used for determined the transfer encoding.
None found |
$_transferEncodingAvailable : array
Available encoding to be set for transfer.
None found |
$_appCharset : string|null
The application wide charset, used to encode headers and body
None found |
$_attachments : array
List of files that should be attached to the email.
Only absolute paths
None found |
$_boundary : string|null
If set, boundary to use for multipart mime messages
None found |
None found |
$_dsnClassMap : array
An array mapping url schemes to fully qualified Transport class names.
Unused.
None found |
$_profile : array
A copy of the configuration profile for this instance. This copy can be modified with Email::profile().
None found |
None found |
$_emailPattern : string
Regex for email validation
If null, filter_var() will be used. Use the emailPattern() method to set a custom pattern.'
None found |
setConfig(string|array $key, array $config = null) : void
This method can be used to define configuration adapters for an application.
To change an adapter's configuration at runtime, first drop the adapter and then reconfigure it.
Adapters will not be constructed until the first operation is done.
Assuming that the class' name is Cache
the following scenarios
are supported:
Setting a cache engine up.
Cache::setConfig('default', $settings);
Injecting a constructed adapter in:
Cache::setConfig('default', $instance);
Configure multiple adapters at once:
Cache::setConfig($arrayOfConfig);
string|array | $key | The name of the configuration, or an array of multiple configs. |
array | $config | An array of name => configuration data for adapter. |
When trying to modify an existing config.
When trying to store an invalid structured config array.
None found |
getConfig(string $key) : array|null
Reads existing configuration.
string | $key | The name of the configuration. |
Array of configuration data.
None found |
config(string|array $key, array|null $config = null) : array|null
This method can be used to define configuration adapters for an application or read existing configuration.
To change an adapter's configuration at runtime, first drop the adapter and then reconfigure it.
Adapters will not be constructed until the first operation is done.
Assuming that the class' name is Cache
the following scenarios
are supported:
Reading config data back:
Cache::config('default');
Setting a cache engine up.
Cache::config('default', $settings);
Injecting a constructed adapter in:
Cache::config('default', $instance);
Configure multiple adapters at once:
Cache::config($arrayOfConfig);
string|array | $key | The name of the configuration, or an array of multiple configs. |
array|null | $config | An array of name => configuration data for adapter. |
When trying to modify an existing config.
Null when adding configuration or an array of configuration data when reading.
None found |
drop(string $config) : boolean
Drops a constructed adapter.
If you wish to modify an existing configuration, you should drop it, change configuration and then re-add it.
If the implementing objects supports a $_registry
object the named configuration
will also be unloaded from the registry.
string | $config | An existing configuration you wish to remove. |
Success of the removal, returns false when the config does not exist.
None found |
configured() : array<mixed,string>
Returns an array containing the named configurations
Array of configurations.
None found |
parseDsn(string $dsn) : array
Parses a DSN into a valid connection configuration
This method allows setting a DSN using formatting similar to that used by PEAR::DB. The following is an example of its usage:
$dsn = 'mysql://user:pass@localhost/database?';
$config = ConnectionManager::parseDsn($dsn);
$dsn = 'Cake\Log\Engine\FileLog://?types=notice,info,debug&file=debug&path=LOGS';
$config = Log::parseDsn($dsn);
$dsn = 'smtp://user:secret@localhost:25?timeout=30&client=null&tls=null';
$config = Email::parseDsn($dsn);
$dsn = 'file:///?className=\My\Cache\Engine\FileEngine';
$config = Cache::parseDsn($dsn);
$dsn = 'File://?prefix=myapp_cake_core_&serialize=true&duration=+2 minutes&path=/tmp/persistent/';
$config = Cache::parseDsn($dsn);
For all classes, the value of scheme
is set as the value of both the className
unless they have been otherwise specified.
Note that querystring arguments are also parsed and set as values in the returned configuration.
string | $dsn | The DSN string to convert to a configuration array |
If not passed a string, or passed an invalid string
The configuration array to be stored after parsing the DSN
None found |
setDsnClassMap(array $map) : void
Updates the DSN class map for this class.
array | $map | Additions/edits to the class map to apply. |
None found |
None found |
dsnClassMap(array|null $map = null) : array
Returns or updates the DSN class map for this class.
array|null | $map | Additions/edits to the class map to apply. |
None found |
viewBuilder() : \Cake\View\ViewBuilder
Get the view builder being used.
None found |
createView(string|null $viewClass = null) : \Cake\View\View
Constructs the view class instance based on the current configuration.
string|null | $viewClass | Optional namespaced class name of the View class to instantiate. |
If view class was not found.
None found |
set(string|array $name, mixed $value = null) : $this
Saves a variable or an associative array of variables for use inside a template.
string|array | $name | A string or an array of data. |
mixed | $value | Value in case $name is a string (which then works as the key). Unused if $name is an associative array, otherwise serves as the values to $name's keys. |
None found |
viewOptions(string|array|null $options = null, boolean $merge = true) : array
Get/Set valid view options in the object's _validViewOptions property. The property is created as an empty array if it is not set. If called without any parameters it will return the current list of valid view options. See `createView()`.
string|array|null | $options | string or array of string to be appended to _validViewOptions. |
boolean | $merge | Whether to merge with or override existing valid View options.
Defaults to |
The updated view options as an array.
None found |
__construct(array|string|null $config = null)
Constructor
array|string|null | $config | Array of configs, or string to load configs from app.php |
None found |
None found |
setFrom(string|array $email, string|null $name = null) : $this
Sets "from" address.
string|array | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
from(string|array|null $email = null, string|null $name = null) : array|$this
From
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setSender(string|array $email, string|null $name = null) : $this
Sets "sender" address.
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
sender(string|array|null $email = null, string|null $name = null) : array|$this
Sender
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setReplyTo(string|array $email, string|null $name = null) : $this
Sets "Reply-To" address.
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
replyTo(string|array|null $email = null, string|null $name = null) : array|$this
Reply-To
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setReadReceipt(string|array $email, string|null $name = null) : $this
Sets Read Receipt (Disposition-Notification-To header).
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
getReadReceipt() : array
Gets Read Receipt (Disposition-Notification-To header).
None found |
readReceipt(string|array|null $email = null, string|null $name = null) : array|$this
Read Receipt (Disposition-Notification-To header)
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setReturnPath(string|array $email, string|null $name = null) : $this
Return Path
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
returnPath(string|array|null $email = null, string|null $name = null) : array|$this
Return Path
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setTo(string|array $email, string|null $name = null) : $this
Sets "to" address.
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
to(string|array|null $email = null, string|null $name = null) : array|$this
To
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
addTo(string|array $email, string|null $name = null) : $this
Add To
string|array | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setCc(string|array $email, string|null $name = null) : $this
Sets "cc" address.
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
cc(string|array|null $email = null, string|null $name = null) : array|$this
Cc
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
addCc(string|array $email, string|null $name = null) : $this
Add Cc
string|array | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setBcc(string|array $email, string|null $name = null) : $this
Sets "bcc" address.
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
None found |
bcc(string|array|null $email = null, string|null $name = null) : array|$this
Bcc
string|array|null | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
addBcc(string|array $email, string|null $name = null) : $this
Add Bcc
string|array | Null to get, String with email, Array with email as key, name as value or email as value (without name) |
|
string|null | $name | Name |
None found |
setCharset(string|null $charset) : $this
Charset setter.
string|null | $charset | Character set. |
None found |
None found |
charset(string|null $charset = null) : string
Charset setter/getter
string|null | $charset | Character set. |
Charset
None found |
setHeaderCharset(string|null $charset) : $this
HeaderCharset setter.
string|null | $charset | Character set. |
None found |
None found |
headerCharset(string|null $charset = null) : string
HeaderCharset setter/getter
string|null | $charset | Character set. |
Charset
None found |
setTransferEncoding(string|null $encoding) : $this
TransferEncoding setter.
string|null | $encoding | Encoding set. |
None found |
getTransferEncoding() : string|null
TransferEncoding getter.
Encoding
None found |
setEmailPattern(string|null $regex) : $this
EmailPattern setter/getter
string|null | $regex | The pattern to use for email address validation, null to unset the pattern and make use of filter_var() instead. |
None found |
None found |
emailPattern(string|boolean|null $regex = false) : string|$this
EmailPattern setter/getter
string|boolean|null | $regex | The pattern to use for email address validation, null to unset the pattern and make use of filter_var() instead, false or nothing to return the current value |
None found |
setSubject(string $subject) : $this
Sets subject.
string | $subject | Subject string. |
None found |
None found |
subject(string|null $subject = null) : string|$this
Get/Set Subject.
string|null | $subject | Subject string. |
None found |
getOriginalSubject() : string
Get original subject without encoding
Original subject
None found |
setHeaders(array $headers) : $this
Sets headers for the message
array | $headers | Associative array containing headers to be set. |
None found |
addHeaders(array $headers) : $this
Add header for the message
array | $headers | Headers to set. |
None found |
getHeaders(array $include = array()) : array
Get list of headers
from
replyTo
readReceipt
returnPath
to
cc
bcc
subject
array | $include | List of headers. |
None found |
setTemplate(string|null $template) : $this
Sets template.
string|null | $template | Template name or null to not use. |
None found |
None found |
setLayout(string|null $layout) : $this
Sets layout.
string|null | $layout | Layout name or null to not use |
None found |
None found |
template(boolean|string $template = false, boolean|string $layout = false) : array|$this
Template and layout
boolean|string | $template | Template name or null to not use |
boolean|string | $layout | Layout name or null to not use |
None found |
setViewRenderer(string $viewClass) : $this
Sets view class for render.
string | $viewClass | View class name. |
None found |
None found |
viewRender(string|null $viewClass = null) : string|$this
View class for render
string|null | $viewClass | View class name. |
None found |
setViewVars(array $viewVars) : $this
Sets variables to be set on render.
array | $viewVars | Variables to set for view. |
None found |
None found |
viewVars(array|null $viewVars = null) : array|$this
Variables to be set on render
array|null | $viewVars | Variables to set for view. |
None found |
setTheme(string $theme) : $this
Sets theme to use when rendering.
string | $theme | Theme name. |
None found |
None found |
theme(string|null $theme = null) : string|$this
Theme to use when rendering
string|null | $theme | Theme name. |
None found |
setHelpers(array $helpers) : $this
Sets helpers to be used when rendering.
array | $helpers | Helpers list. |
None found |
None found |
helpers(array|null $helpers = null) : array|$this
Helpers to be used in render
array|null | $helpers | Helpers list. |
None found |
setEmailFormat(string $format) : $this
Sets email format.
string | $format | Formatting string. |
None found |
None found |
emailFormat(string|null $format = null) : string|$this
Email format
string|null | $format | Formatting string. |
None found |
setTransport(string|\Cake\Mailer\AbstractTransport $name) : $this
Sets the transport.
When setting the transport you can either use the name of a configured transport or supply a constructed transport.
string|\Cake\Mailer\AbstractTransport | $name | Either the name of a configured transport, or a transport instance. |
When the chosen transport lacks a send method.
When $name is neither a string nor an object.
None found |
getTransport() : \Cake\Mailer\AbstractTransport
Gets the transport.
None found |
transport(string|\Cake\Mailer\AbstractTransport|null $name = null) : \Cake\Mailer\AbstractTransport|$this
Get/set the transport.
When setting the transport you can either use the name of a configured transport or supply a constructed transport.
string|\Cake\Mailer\AbstractTransport|null | $name | Either the name of a configured transport, or a transport instance. |
When the chosen transport lacks a send method.
When $name is neither a string nor an object.
None found |
setMessageId(boolean|string $message) : $this
Sets message ID.
boolean|string | $message | True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID. |
None found |
None found |
messageId(boolean|string|null $message = null) : boolean|string|$this
Message-ID
boolean|string|null | $message | True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID |
None found |
setDomain(string $domain) : $this
Sets domain.
Domain as top level (the part after @).
string | $domain | Manually set the domain for CLI mailing. |
None found |
None found |
domain(string|null $domain = null) : string|$this
Domain as top level (the part after @)
string|null | $domain | Manually set the domain for CLI mailing |
None found |
setAttachments(string|array $attachments) : $this
Add attachments to the email message
Attachments can be defined in a few forms depending on how much control you need:
Attach a single file:
$email->setAttachments('path/to/file');
Attach a file with a different filename:
$email->setAttachments(['custom_name.txt' => 'path/to/file.txt']);
Attach a file and specify additional properties:
$email->setAttachments(['custom_name.png' => [
'file' => 'path/to/file',
'mimetype' => 'image/png',
'contentId' => 'abc123',
'contentDisposition' => false
]
]);
Attach a file from string and specify additional properties:
$email->setAttachments(['custom_name.png' => [
'data' => file_get_contents('path/to/file'),
'mimetype' => 'image/png'
]
]);
The contentId
key allows you to specify an inline attachment. In your email text, you
can use <img src="cid:abc123" />
to display the image inline.
The contentDisposition
key allows you to disable the Content-Disposition
header, this can improve
attachment compatibility with outlook email clients.
string|array | $attachments | String with the filename or array with filenames |
None found |
getAttachments() : array
Gets attachments to the email message.
Array of attachments.
None found |
attachments(string|array|null $attachments = null) : array|$this
Add attachments to the email message
Attachments can be defined in a few forms depending on how much control you need:
Attach a single file:
$email->setAttachments('path/to/file');
Attach a file with a different filename:
$email->setAttachments(['custom_name.txt' => 'path/to/file.txt']);
Attach a file and specify additional properties:
$email->setAttachments(['custom_name.png' => [
'file' => 'path/to/file',
'mimetype' => 'image/png',
'contentId' => 'abc123',
'contentDisposition' => false
]
]);
Attach a file from string and specify additional properties:
$email->setAttachments(['custom_name.png' => [
'data' => file_get_contents('path/to/file'),
'mimetype' => 'image/png'
]
]);
The contentId
key allows you to specify an inline attachment. In your email text, you
can use <img src="cid:abc123" />
to display the image inline.
The contentDisposition
key allows you to disable the Content-Disposition
header, this can improve
attachment compatibility with outlook email clients.
string|array|null | $attachments | String with the filename or array with filenames |
Either the array of attachments when getting or $this when setting.
None found |
addAttachments(string|array $attachments) : $this
Add attachments
string|array | $attachments | String with the filename or array with filenames |
None found |
message(string|null $type = null) : string|array
Get generated message (used by transport classes)
string|null | $type | Use MESSAGE_* constants or null to return the full message as array |
String if type is given, array if type is null
None found |
setPriority(integer|null $priority) : $this
Sets priority.
integer|null | $priority | 1 (highest) to 5 (lowest) |
None found |
None found |
setConfigTransport(string|array $key, array|\Cake\Mailer\AbstractTransport|null $config = null) : void
Sets transport configuration.
Use this method to define transports to use in delivery profiles. Once defined you cannot edit the configurations, and must use Email::dropTransport() to flush the configuration first.
When using an array of configuration data a new transport will be constructed for each message sent. When using a Closure, the closure will be evaluated for each message.
The className
is used to define the class to use for a transport.
It can either be a short name, or a fully qualified class name
string|array | $key | The configuration name to write. Or an array of multiple transports to set. |
array|\Cake\Mailer\AbstractTransport|null | $config | Either an array of configuration data, or a transport instance. Null when using key as array. |
None found |
getConfigTransport(string $key) : array|null
Gets current transport configuration.
string | $key | The configuration name to read. |
Transport config.
None found |
configTransport(string|array $key, array|\Cake\Mailer\AbstractTransport|null $config = null) : array|null
Add or read transport configuration.
Use this method to define transports to use in delivery profiles. Once defined you cannot edit the configurations, and must use Email::dropTransport() to flush the configuration first.
When using an array of configuration data a new transport will be constructed for each message sent. When using a Closure, the closure will be evaluated for each message.
The className
is used to define the class to use for a transport.
It can either be a short name, or a fully qualified classname
string|array | $key | The configuration name to read/write. Or an array of multiple transports to set. |
array|\Cake\Mailer\AbstractTransport|null | $config | Either an array of configuration data, or a transport instance. |
When modifying an existing configuration.
Either null when setting or an array of data when reading.
None found |
configuredTransport() : array
Returns an array containing the named transport configurations
Array of configurations.
None found |
dropTransport(string $key) : void
Delete transport configuration.
string | $key | The transport name to remove. |
None found |
setProfile(string|array $config) : $this
Sets the configuration profile to use for this instance.
string|array | $config | String with configuration name, or an array with config. |
None found |
getProfile() : string|array
Gets the configuration profile to use for this instance.
None found |
profile(null|string|array $config = null) : string|array|$this
Get/Set the configuration profile to use for this instance.
null|string|array | $config | String with configuration name, or an array with config or null to return current config. |
None found |
send(string|array|null $content = null) : array
Send an email using the specified content, template and layout
string|array|null | $content | String with message or array with messages |
None found |
deliver(string|array|null $to = null, string|null $subject = null, string|array|null $message = null, string|array $config = 'default', boolean $send = true) : static
Static method to fast create an instance of \Cake\Mailer\Email
string|array|null | $to | Address to send (see Cake\Mailer\Email::to()). If null, will try to use 'to' from transport config |
string|null | $subject | String of subject or null to use 'subject' from transport config |
string|array|null | $message | String with message or array with variables to be used in render |
string|array | $config | String to use Email delivery profile from app.php or array with configs |
boolean | $send | Send the email or just return the instance pre-configured |
Instance of Cake\Mailer\Email
None found |
reset() : $this
Reset all the internal variables to be able to send out a new email.
None found |
jsonSerialize() : array
Serializes the email object to a value that can be natively serialized and re-used to clone this email instance.
It has certain limitations for viewVars that are good to know:
When a view var object can not be properly serialized.
Serializable array of configuration properties.
None found |
createFromArray(array $config) : $this
Configures an email instance object from serialized config.
array | $config | Email configuration array. |
Configured email instance.
None found |
None found |
unserialize(string $data) : static
Unserializes the Email object.
string | $data | Serialized string. |
Configured email instance.
None found |
_setEmail(string $varName, string|array $email, string $name) : $this
Set email
string | $varName | Property name |
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string | $name | Name |
None found |
_validateEmail(string $email, string $context) : void
Validate email address
string | Email address to validate |
|
string | $context | Which property was set |
If email address does not validate
None found |
_setEmailSingle(string $varName, string|array $email, string $name, string $throwMessage) : $this
Set only 1 email
string | $varName | Property name |
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string | $name | Name |
string | $throwMessage | Exception message |
None found |
_addEmail(string $varName, string|array $email, string $name) : $this
Add email
string | $varName | Property name |
string|array | String with email, Array with email as key, name as value or email as value (without name) |
|
string | $name | Name |
None found |
_formatAddress(array $address) : array
Format addresses
If the address contains non alphanumeric/whitespace characters, it will
be quoted as characters like :
and ,
are known to cause issues
in address header fields.
array | $address | Addresses to format. |
None found |
_logDelivery(array $contents) : void
Log the email message delivery.
array | $contents | The content with 'headers' and 'message' keys. |
None found |
flatten(string|array $value) : string
Converts given value to string
string|array | $value | The value to convert |
None found |
_applyConfig(string|array $config) : void
Apply the config to an instance
string|array | $config | Configuration options. |
When using a configuration that doesn't exist.
None found |
_encode(string $text) : string
Encode the specified string using the current charset
string | $text | String to encode |
Encoded string
None found |
_decode(string $text) : string
Decode the specified string
string | $text | String to decode |
Decoded string
None found |
_encodeString(string $text, string $charset) : string
Translates a string for one charset to another if the App.encoding value differs and the mb_convert_encoding function exists
string | $text | The text to be converted |
string | $charset | the target encoding |
None found |
_wrap(string $message, integer $wrapLength = \Cake\Mailer\Email::LINE_LENGTH_MUST) : array
Wrap the message to follow the RFC 2822 - 2.1.1
string | $message | Message to wrap |
integer | $wrapLength | The line length |
Wrapped message
None found |
None found |
_attachFiles(string|null $boundary = null) : array
Attach non-embedded files by adding file contents inside boundaries.
string|null | $boundary | Boundary to use. If null, will default to $this->_boundary |
An array of lines to add to the message
None found |
_readFile(string $path) : string
Read the file contents and return a base64 version of the file contents.
string | $path | The absolute path to the file to read. |
File contents in base64 encoding
None found |
_attachInlineFiles(string|null $boundary = null) : array
Attach inline/embedded files to the message.
string|null | $boundary | Boundary to use. If null, will default to $this->_boundary |
An array of lines to add to the message
None found |
_render(array $content) : array
Render the body of the email.
array | $content | Content to render |
Email body ready to be sent
None found |
_getTypes() : array
Gets the text body types that are in this email message
Array of types. Valid types are 'text' and 'html'
None found |
_renderTemplates(string $content) : array
Build and set all the view properties needed to render the templated emails.
If there is no template set, the $content will be returned in a hash of the text content types for the email.
string | $content | The content passed in from send() in most cases. |
The rendered content with html and text keys.
None found |
_getContentTransferEncoding() : string
Return the Content-Transfer Encoding value based on the set transferEncoding or set charset.
None found |
_getContentTypeCharset() : string
Return charset value for Content-Type.
Checks fallback/compatibility types which include workarounds for legacy japanese character sets.
None found |
_checkViewVars(mixed $item, string $key) : void
Iterates through hash to clean up and normalize.
mixed | $item | Reference to the view var value. |
string | $key | View var key. |
None found |