PHP Класс Fragen\GitHub_Updater\Settings

Class Settings
Автор: Andy Fragen
Наследование: extends Base
Показать файл Открыть проект

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

Свойство Тип Описание
$remote_management array Supported remote management services.

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

Метод Описание
__construct ( ) Start up.
add_plugin_page ( ) Add options page.
create_admin_page ( ) Options page callback.
ghu_tokens ( ) Create and return settings fields for private repositories.
load_hooks ( ) Load relevant action/filter hooks.
page_init ( ) Register and add settings.
plugin_action_links ( $links ) : array Add setting link to plugin page.
print_section_bitbucket_info ( ) Print the Bitbucket repo text.
print_section_bitbucket_username ( ) Print the Bitbucket user/pass text.
print_section_ghu_settings ( ) Print the GitHub Updater text.
print_section_github_access_token ( ) Print the GitHub Personal Access Token text.
print_section_github_info ( ) Print the GitHub text.
print_section_gitlab_info ( ) Print the GitLab text.
print_section_gitlab_token ( ) Print the GitLab Access Token text.
print_section_remote_management ( ) Print the Remote Management text.
remote_management_page_init ( ) Settings for Remote Management.
sanitize ( array $input ) : array Sanitize each setting field as needed.
token_callback_checkbox ( $args ) Get the settings option array and print one of its values.
token_callback_checkbox_remote ( $args ) : boolean | void Get the settings option array and print one of its values.
token_callback_text ( $args ) Get the settings option array and print one of its values.
update_settings ( ) Update settings for single site or network activated.

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

Метод Описание
redirect_on_save ( ) Redirect to correct Settings tab on Save.

Приватные методы

Метод Описание
display_ghu_repos ( $type ) Write out listing of installed plugins and themes using GitHub Updater.
filter_options ( ) : array | mixed Filter options so that sub-tab options are grouped in single $options variable.
installed_git_repos ( ) : array Return an array of the installed repository types.
options_sub_tabs ( ) Render the settings sub-tabs.
options_tabs ( ) Renders setting tabs.
refresh_transients ( ) : boolean Clear GitHub Updater transients.
reset_api_key ( ) : boolean Reset RESTful API key.
settings_sub_tabs ( ) : array Set up the Settings Sub-tabs.
settings_tabs ( ) : array Define tabs for Settings page.

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

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

Start up.
public __construct ( )

add_plugin_page() публичный метод

Add options page.
public add_plugin_page ( )

create_admin_page() публичный метод

Options page callback.
public create_admin_page ( )

ghu_tokens() публичный метод

Create and return settings fields for private repositories.
public ghu_tokens ( )

load_hooks() публичный метод

Load relevant action/filter hooks.
public load_hooks ( )

page_init() публичный метод

Check to see if it's a private repo.
public page_init ( )

print_section_bitbucket_info() публичный метод

Print the Bitbucket repo text.

print_section_bitbucket_username() публичный метод

Print the Bitbucket user/pass text.

print_section_ghu_settings() публичный метод

Print the GitHub Updater text.

print_section_github_access_token() публичный метод

Print the GitHub Personal Access Token text.

print_section_github_info() публичный метод

Print the GitHub text.

print_section_gitlab_info() публичный метод

Print the GitLab text.

print_section_gitlab_token() публичный метод

Print the GitLab Access Token text.

print_section_remote_management() публичный метод

Print the Remote Management text.

redirect_on_save() защищенный метод

Redirect to correct Settings tab on Save.
protected redirect_on_save ( )

remote_management_page_init() публичный метод

Settings for Remote Management.

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

Sanitize each setting field as needed.
public static sanitize ( array $input ) : array
$input array Contains all settings fields as array keys
Результат array

token_callback_checkbox() публичный метод

Get the settings option array and print one of its values.
public token_callback_checkbox ( $args )
$args

token_callback_checkbox_remote() публичный метод

For remote management settings.
public token_callback_checkbox_remote ( $args ) : boolean | void
$args
Результат boolean | void

token_callback_text() публичный метод

Get the settings option array and print one of its values.
public token_callback_text ( $args )
$args

update_settings() публичный метод

Update settings for single site or network activated.
public update_settings ( )

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

$remote_management защищенное статическое свойство

Supported remote management services.
protected static array $remote_management
Результат array