메소드 |
설명 |
|
addBlock ( string $template, RainLab\User\Models\User $user ) : boolean |
Adds a block for a user and a mail view/template code. |
|
blockAll ( RainLab\User\Models\User $user ) : boolean |
Blocks all mail messages for a user. |
|
checkAllForUser ( Model $user ) : array |
Returns a list of mail templates blocked by the user. |
|
checkForEmail ( string $template, string $email ) : array |
Checks if an email address has blocked a given template,
returns an array of blocked emails. |
|
filterMessage ( string $template, Illuminate\Mail\Message $message ) : boolean | null |
Filters a Illuminate\Mail\Message and removes blocked recipients. |
|
isBlockAll ( RainLab\User\Models\User $user ) : boolean |
Checks if a user is blocking all templates. |
|
removeBlock ( string $template, RainLab\User\Models\User $user ) : boolean |
Removes a block for a user and a mail view/template code. |
|
setPreferences ( RainLab\User\Models\User $user, array $templates, array $options = [] ) : void |
Sets mail blocking preferences for a user. Eg: |
|
syncUser ( Model $user ) : mixed |
Updates mail blockers for a user if they change their email address |
|
unblockAll ( RainLab\User\Models\User $user ) : boolean |
Removes block on all mail messages for a user. |
|