PHP Class DiscourseAdmin

Afficher le fichier Open project: discourse/wp-discourse

Protected Properties

Свойство Type Description
$options
$response_validator

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
post_types_to_publish ( $excluded_types = [] )

Method Details

__construct() public méthode

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 méthode

Settings
public admin_init ( )

api_key_input() public méthode

public api_key_input ( )

auto_publish_checkbox() public méthode

auto_track_checkbox() public méthode

public auto_track_checkbox ( )

bypass_trust_level_input() public méthode

category_select() public méthode

public category_select ( $option, $description )

checkbox_input() public méthode

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

connected() public méthode

public connected ( )

connection_status_notice() public méthode

custom_datetime_format() public méthode

custom_excerpt_length() public méthode

debug_mode_checkbox() public méthode

public debug_mode_checkbox ( )

disconnected() public méthode

public disconnected ( )

discourse_admin_menu() public méthode

discourse_options_page() public méthode

discourse_validate_options() public méthode

public discourse_validate_options ( $inputs )

enable_sso_checkbox() public méthode

public enable_sso_checkbox ( )

existing_comments_heading_input() public méthode

extend_user_profile() public méthode

public extend_user_profile ( $fields )

full_post_checkbox() public méthode

public full_post_checkbox ( )

get_discourse_categories() public méthode

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 méthode

init_default_settings() public méthode

max_comments_input() public méthode

public max_comments_input ( )

min_replies_input() public méthode

public min_replies_input ( )

min_score_input() public méthode

public min_score_input ( )

min_trust_level_input() public méthode

only_show_moderator_liked_checkbox() public méthode

option_input() public méthode

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

post_type_select_input() public méthode

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

post_types_select() public méthode

public post_types_select ( )

post_types_to_publish() protected méthode

protected post_types_to_publish ( $excluded_types = [] )

publish_category_input() public méthode

publish_category_input_update() public méthode

publish_to_discourse() public méthode

publish_username_input() public méthode

show_existing_comments_checkbox() public méthode

sso_secret_input() public méthode

public sso_secret_input ( )

text_area() public méthode

public text_area ( $option, $description )

text_input() public méthode

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

url_input() public méthode

public url_input ( )

use_discourse_comments_checkbox() public méthode

wordpress_login_path() public méthode

Property Details

$options protected_oe property

protected $options

$response_validator protected_oe property

protected $response_validator