Html
Less than 1 minute
Html
- Full name:
\Hazaar\Mail\Mime\Html
- Parent class:
\Hazaar\Mail\Mime\Part
- This class implements:
\JsonSerializable
Properties
boundary
private string $boundary
html
private \Hazaar\Mail\Template $html
params
private array $params
Methods
__construct
public __construct(string|\Hazaar\Mail\Template $html, string[] $headers = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$html | string|\Hazaar\Mail\Template | |
$headers | string[] |
__toString
public __toString(): string
setParams
Set the parameters for the template.
public setParams(array $params): void
Parameters:
Parameter | Type | Description |
---|---|---|
$params | array |
encode
public encode(int $width_limit = 998): string
Parameters:
Parameter | Type | Description |
---|---|---|
$width_limit | int |
jsonSerialize
public jsonSerialize(): mixed
Inherited methods
__construct
public __construct(string $content = null, string $content_type = null, string[] $headers = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$content_type | string | |
$headers | string[] |
setHeaders
public setHeaders(string[] $headers): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$headers | string[] |
setHeader
public setHeader(string $header, string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string | |
$content | string |
getHeader
public getHeader(string $header): string
Parameters:
Parameter | Type | Description |
---|---|---|
$header | string |
setContentType
public setContentType(string $type): void
Parameters:
Parameter | Type | Description |
---|---|---|
$type | string |
getContentType
public getContentType(): string
setDescription
public setDescription(string $text): void
Parameters:
Parameter | Type | Description |
---|---|---|
$text | string |
setContent
public setContent(string $content): void
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string |
getContent
public getContent(): string
detect_break
public detect_break(string $content, string $default = "
"): string
Parameters:
Parameter | Type | Description |
---|---|---|
$content | string | |
$default | string |
encode
public encode(int $width_limit = 76): string
Parameters:
Parameter | Type | Description |
---|---|---|
$width_limit | int |
decode
public static decode(string $data): \Hazaar\Mail\Mime\Part
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | string |
jsonSerialize
public jsonSerialize(): mixed
Automatically generated on 2024-11-14