PHP Класс HM\BackUpWordPress\Email_Service

Наследование: extends HM\BackUpWordPress\Service
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$name string Human readable name for this service

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

Метод Описание
action ( string $action, Backup $backup ) Fire the email notification on the hmbkp_backup_complete
constant ( )
display ( ) : string The sentence fragment that is output as part of the schedule sentence
field ( ) Output the email form field
form ( ) : string Not used as we only need a field
intercom_data ( )
intercom_data_html ( )
is_service_active ( ) Used to determine if the service is in use or not
update ( &$new_data, array $old_data ) : array | null Validate the email and return an error if validation fails

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

Метод Описание
get_email_address_array ( ) : array Get an array or validated email address's

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

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

Fire the email notification on the hmbkp_backup_complete
См. также: Backup::do_action
public action ( string $action, Backup $backup )
$action string The action received from the backup
$backup Backup

constant() публичный статический Метод

public static constant ( )

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

The sentence fragment that is output as part of the schedule sentence
public display ( ) : string
Результат string

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

Output the email form field
public field ( )

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

Not used as we only need a field
См. также: field
public form ( ) : string
Результат string Empty string

intercom_data() публичный статический Метод

public static intercom_data ( )

intercom_data_html() публичный статический Метод

public static intercom_data_html ( )

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

Used to determine if the service is in use or not
public is_service_active ( )

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

Validate the email and return an error if validation fails
public update ( &$new_data, array $old_data ) : array | null
$old_data array The data we are replacing.
Результат array | null Null on success, array of errors if validation failed.

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

$name публичное свойство

Human readable name for this service
public string $name
Результат string