Метод | Описание | |
---|---|---|
__construct ( integer $post_id ) | Class constructor. | |
__destruct ( ) | ||
fetch ( string $contents ) : string | Convert tags within a string. | |
get_cases ( ) : array | Get available notification cases. | |
get_reply ( ) : boolean | object | Ge the post object for the reply. | |
get_sender ( ) : array | Get sender data. | |
get_tags ( ) : array | Get the available template tags. | |
get_tags_values ( ) : array | Get tags and their value in the current context. | |
get_ticket ( ) : boolean | object | Ge the post object for the ticket. | |
is_active ( string $case ) : boolean | Check if the requested notification is active. | |
notification_exists ( string $case ) : boolean | Check if the requested notification exists. | |
notify ( string $case ) : boolean | object | Send out the e-mail notification. | |
set_html_mime_type ( ) : string | Set the e-mail content type to HTML. | |
set_text_mime_type ( ) : string | Set the e-mail content type to plain text. |
Метод | Описание | |
---|---|---|
cases_active_option ( ) : array | Get notification cases active option name. | |
get_body ( $case ) : string | Get e-mail body. | |
get_content ( string $part, string $case ) : string | Get e-mail content. | |
get_formatted_email ( string $content = '' ) : string | Retrieve the e-mail template to use and input the content | |
get_subject ( $case ) : string | Get e-mail subject. |
public __construct ( integer $post_id ) | ||
$post_id | integer | ID of the post to notify about |
public get_sender ( ) : array | ||
Результат | array | Array containing the sender name and e-mail as well as the reply address |
public get_tags_values ( ) : array | ||
Результат | array | Array of tag / value pairs |
public get_ticket ( ) : boolean | object | ||
Результат | boolean | object | The ticket object if there is a reply, false otherwise |
public notification_exists ( string $case ) : boolean | ||
$case | string | The notification case requested |
Результат | boolean | True if such a case exists, false otherwise |
public set_html_mime_type ( ) : string | ||
Результат | string | HTML content type |
public set_text_mime_type ( ) : string | ||
Результат | string | Text content type |