PHP Класс Bogardo\Mailgun\Mail\Mailer

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config Illuminate\Contracts\Config\Repository
$mailgun Mailgun\Mailgun
$message Message
$view Illuminate\Contracts\View\Factory

Открытые методы

Метод Описание
__construct ( Mailgun $mailgun, Illuminate\Contracts\View\Factory $view, Illuminate\Contracts\Config\Repository $config )
later ( integer | array | DateTime | Carbon\Carbon $time, string | array $view, array $data, Closure $callback ) : Response
send ( string | array $view, array $data, Closure $callback, null $message = null ) : Response

Защищенные методы

Метод Описание
callMessageBuilder ( Closure $callback, Message $message ) : mixed Call the provided message builder.
renderBody ( string | array $view, array $data ) Render HTML and/or text body.
renderView ( string $view, array $data ) : string Render the view.
setHtmlBody ( string $view, array $data ) Set rendered HTML body.
setRawBody ( string $view ) Set the raw body
setTextBody ( string $view, array $data ) Set rendered text body.

Приватные методы

Метод Описание
parseTime ( integer | array | Carbon\Carbon | DateTime $time ) : string Parse given time and convert it to the required format

Описание методов

__construct() публичный Метод

public __construct ( Mailgun $mailgun, Illuminate\Contracts\View\Factory $view, Illuminate\Contracts\Config\Repository $config )
$mailgun Mailgun\Mailgun
$view Illuminate\Contracts\View\Factory
$config Illuminate\Contracts\Config\Repository

callMessageBuilder() защищенный Метод

Call the provided message builder.
protected callMessageBuilder ( Closure $callback, Message $message ) : mixed
$callback Closure
$message Message
Результат mixed

later() публичный Метод

public later ( integer | array | DateTime | Carbon\Carbon $time, string | array $view, array $data, Closure $callback ) : Response
$time integer | array | DateTime | Carbon\Carbon
$view string | array
$data array
$callback Closure
Результат Bogardo\Mailgun\Http\Response

renderBody() защищенный Метод

When only a string is passed as the view we default to an HTML body. When an array without keys is passed as the view; the first value will be handled as the HTML body. An optional second value will be handled as the text body. When an array with keys (html, text or raw) is passed as the view; the values for those keys will be handled according to the key.
protected renderBody ( string | array $view, array $data )
$view string | array
$data array

renderView() защищенный Метод

Render the view.
protected renderView ( string $view, array $data ) : string
$view string
$data array
Результат string

send() публичный Метод

public send ( string | array $view, array $data, Closure $callback, null $message = null ) : Response
$view string | array
$data array
$callback Closure
$message null
Результат Bogardo\Mailgun\Http\Response

setHtmlBody() защищенный Метод

Set rendered HTML body.
protected setHtmlBody ( string $view, array $data )
$view string
$data array

setRawBody() защищенный Метод

Set the raw body
protected setRawBody ( string $view )
$view string

setTextBody() защищенный Метод

Set rendered text body.
protected setTextBody ( string $view, array $data )
$view string
$data array

Описание свойств

$config защищенное свойство

protected Repository,Illuminate\Contracts\Config $config
Результат Illuminate\Contracts\Config\Repository

$mailgun защищенное свойство

protected Mailgun,Mailgun $mailgun
Результат Mailgun\Mailgun

$message защищенное свойство

protected Message,Bogardo\Mailgun\Mail $message
Результат Message

$view защищенное свойство

protected Factory,Illuminate\Contracts\View $view
Результат Illuminate\Contracts\View\Factory