Class lispa\amos\core\utilities\Email

Inheritancelispa\amos\core\utilities\Email » yii\base\Object
Implementsyii\base\Configurable

Class Email

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Object
__construct() Constructor. yii\base\Object
__get() Returns the value of an object property. yii\base\Object
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Object
__set() Sets value of an object property. yii\base\Object
__unset() Sets an object property to null. yii\base\Object
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Object
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Object
className() Returns the fully qualified name of this class. yii\base\Object
hasMethod() Returns a value indicating whether a method is defined. yii\base\Object
hasProperty() Returns a value indicating whether a property is defined. yii\base\Object
init() Initializes the object. yii\base\Object
renderMailPartial() Renders a view without applying layout. lispa\amos\core\utilities\Email
sendMail() lispa\amos\core\utilities\Email
setUserLanguage() lispa\amos\core\utilities\Email

Method Details

renderMailPartial() public static method

Renders a view without applying layout.

This method differs from \lispa\amos\core\utilities\render() in that it does not apply any layout.

public static string renderMailPartial ( $view, $params = [], $user_id null )
$view string

The view name. Please refer to \lispa\amos\core\utilities\render() on how to specify a view name.

$params array

The parameters (name-value pairs) that should be made available in the view.

$user_id integer

For get user configurations.

return string

The rendering result.

sendMail() public static method

public static boolean sendMail ( $from, array $to = [], $subject, $text, array $files = [], array $bcc = [], $params = [], $priority 0, $use_queue false )
$from string
$to array
$subject
$text
$files array
$bcc array
$params array
$priority integer
$use_queue boolean
setUserLanguage() public static method

public static void setUserLanguage ( $user_id )
$user_id integer