PHP Class DiscourseAdmin

ファイルを表示 Open project: discourse/wp-discourse

Protected Properties

Property Type Description
$options
$response_validator

Public Methods

Method Description
__construct ( $response_validator ) Discourse constructor.
admin_init ( ) Settings
api_key_input ( )
auto_publish_checkbox ( )
auto_track_checkbox ( )
bypass_trust_level_input ( )
category_select ( $option, $description )
checkbox_input ( $option, $label, $description = '' )
connected ( )
connection_status_notice ( )
custom_datetime_format ( )
custom_excerpt_length ( )
debug_mode_checkbox ( )
disconnected ( )
discourse_admin_menu ( )
discourse_options_page ( )
discourse_validate_options ( $inputs )
enable_sso_checkbox ( )
existing_comments_heading_input ( )
extend_user_profile ( $fields )
full_post_checkbox ( )
get_discourse_categories ( $force_update = '0' ) Todo: this method takes a $force_update argument, but it is never used. It uses the value from the options instead.
init_comment_settings ( )
init_default_settings ( )
max_comments_input ( )
min_replies_input ( )
min_score_input ( )
min_trust_level_input ( )
only_show_moderator_liked_checkbox ( )
option_input ( $name, $group, $selected )
post_type_select_input ( $option, $post_types, $description = '' )
post_types_select ( )
publish_category_input ( )
publish_category_input_update ( )
publish_to_discourse ( )
publish_username_input ( )
show_existing_comments_checkbox ( )
sso_secret_input ( )
text_area ( $option, $description )
text_input ( $option, $description, $type = null, $min = null )
url_input ( )
use_discourse_comments_checkbox ( )
wordpress_login_path ( )

Protected Methods

Method Description
post_types_to_publish ( $excluded_types = [] )

Method Details

__construct() public method

Takes a response_validator object as a parameter. It has a check_connection_status method that may be run to check the site's connection status to Discourse.
public __construct ( $response_validator )
$response_validator

admin_init() public method

Settings
public admin_init ( )

api_key_input() public method

public api_key_input ( )

auto_publish_checkbox() public method

auto_track_checkbox() public method

public auto_track_checkbox ( )

bypass_trust_level_input() public method

category_select() public method

public category_select ( $option, $description )

checkbox_input() public method

public checkbox_input ( $option, $label, $description = '' )

connected() public method

public connected ( )

connection_status_notice() public method

custom_datetime_format() public method

custom_excerpt_length() public method

debug_mode_checkbox() public method

public debug_mode_checkbox ( )

disconnected() public method

public disconnected ( )

discourse_admin_menu() public method

discourse_options_page() public method

discourse_validate_options() public method

public discourse_validate_options ( $inputs )

enable_sso_checkbox() public method

public enable_sso_checkbox ( )

existing_comments_heading_input() public method

extend_user_profile() public method

public extend_user_profile ( $fields )

full_post_checkbox() public method

public full_post_checkbox ( )

get_discourse_categories() public method

Todo: this method takes a $force_update argument, but it is never used. It uses the value from the options instead.
public get_discourse_categories ( $force_update = '0' )

init_comment_settings() public method

init_default_settings() public method

max_comments_input() public method

public max_comments_input ( )

min_replies_input() public method

public min_replies_input ( )

min_score_input() public method

public min_score_input ( )

min_trust_level_input() public method

only_show_moderator_liked_checkbox() public method

option_input() public method

public option_input ( $name, $group, $selected )

post_type_select_input() public method

public post_type_select_input ( $option, $post_types, $description = '' )

post_types_select() public method

public post_types_select ( )

post_types_to_publish() protected method

protected post_types_to_publish ( $excluded_types = [] )

publish_category_input() public method

publish_category_input_update() public method

publish_to_discourse() public method

publish_username_input() public method

show_existing_comments_checkbox() public method

sso_secret_input() public method

public sso_secret_input ( )

text_area() public method

public text_area ( $option, $description )

text_input() public method

public text_input ( $option, $description, $type = null, $min = null )

url_input() public method

public url_input ( )

use_discourse_comments_checkbox() public method

wordpress_login_path() public method

Property Details

$options protected_oe property

protected $options

$response_validator protected_oe property

protected $response_validator