PHP Класс Falcon_Connector_WordPress, Falcon

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

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

Свойство Тип Описание
$handler Falcon_Handler Sending handler

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

Метод Описание
__construct ( $handler )
get_available_settings ( ) : array Get available settings for notifications
get_available_settings_short ( )
get_comment_subscribers ( stdClass $comment ) : WP_User[] Get all subscribers for comment notifications
get_name ( ) : string Get a human-readable name for the handler
handle_insert ( $value, Falcon_Reply $reply )
is_allowed_type ( $type )
network_notification_settings ( $user = null, $sites )
notify_on_publish ( $id, $post = null ) Notify user roles on new topic
notify_on_reply ( $id, $comment = null ) Send a notification to subscribers
output_settings ( $user = null )
save_profile_settings ( $user_id, $args = [], $sites = null )

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

Метод Описание
get_comment_content_as_html ( $comment )
get_comment_content_as_text ( $comment )
get_default_settings ( ) : array Get default notification settings
get_html_footer ( $url )
get_message_id_for_comment ( stdClass $comment ) : string Get the Message ID for a comment
get_message_id_for_post ( WP_Post $post ) : string Get the Message ID for a post
get_post_content_as_html ( $post )
get_post_content_as_text ( $post )
get_post_subscribers ( WP_Post $post ) : WP_User[] Get all subscribers for post notifications
get_references_for_comment ( stdClass $comment ) : string Get the References for a comment
get_settings_for_user ( integer $user_id, $site_id = null ) : array Get notification settings for the current user
get_text_footer ( $url )
get_thread_subscribers ( stdClass $comment ) : array Get subscribers for the thread that a comment is in
key_for_setting ( $key, $site_id = null )
print_field ( $field, $settings, $is_defaults_screen = false )

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

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

public __construct ( $handler )

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

Get available settings for notifications
public get_available_settings ( ) : array
Результат array

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

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

protected get_comment_content_as_html ( $comment )

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

protected get_comment_content_as_text ( $comment )

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

Get all subscribers for comment notifications
public get_comment_subscribers ( stdClass $comment ) : WP_User[]
$comment stdClass Comment being checked
Результат WP_User[]

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

Get default notification settings
protected get_default_settings ( ) : array
Результат array Map of type => pref value

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

Get the Message ID for a comment
protected get_message_id_for_comment ( stdClass $comment ) : string
$comment stdClass Comment object
Результат string Message ID

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

Get the Message ID for a post
protected get_message_id_for_post ( WP_Post $post ) : string
$post WP_Post Post object
Результат string Message ID

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

This is used for the handler selector and is shown to the user.
public static get_name ( ) : string
Результат string

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

protected get_post_content_as_html ( $post )

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

protected get_post_content_as_text ( $post )

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

Get all subscribers for post notifications
protected get_post_subscribers ( WP_Post $post ) : WP_User[]
$post WP_Post Post being checked
Результат WP_User[]

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

Get the References for a comment
protected get_references_for_comment ( stdClass $comment ) : string
$comment stdClass Comment object
Результат string Message ID

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

Get notification settings for the current user
protected get_settings_for_user ( integer $user_id, $site_id = null ) : array
$user_id integer User to get settings for
Результат array Map of type => pref value

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

Gets subscribers to the thread (i.e. parent comment authors who are subscribed) as well as subscribers to all threads (i.e. comment authors who are subscribed to all comments on the post)
protected get_thread_subscribers ( stdClass $comment ) : array
$comment stdClass Comment being checked
Результат array

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

public handle_insert ( $value, Falcon_Reply $reply )
$reply Falcon_Reply

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

public static is_allowed_type ( $type )

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

protected key_for_setting ( $key, $site_id = null )

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

public network_notification_settings ( $user = null, $sites )

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

Notify user roles on new topic
public notify_on_publish ( $id, $post = null )

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

Send a notification to subscribers
public notify_on_reply ( $id, $comment = null )

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

public output_settings ( $user = null )

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

protected print_field ( $field, $settings, $is_defaults_screen = false )

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

public save_profile_settings ( $user_id, $args = [], $sites = null )

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

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

Sending handler
protected Falcon_Handler $handler
Результат Falcon_Handler