PHP 클래스 Falcon_Connector_WordPress, Falcon

상속: extends Falcon_Connector
파일 보기 프로젝트 열기: rmccue/Falcon

보호된 프로퍼티들

프로퍼티 타입 설명
$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