PHP Класс Fragen\GitHub_Updater\Install

Install / directly from GitHub Updater.
Наследование: extends Base
Показать файл Открыть проект

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

Свойство Тип Описание
$install array Class options.

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

Метод Описание
__construct ( $type ) Constructor.
bitbucket_password ( ) Bitbucket password for remote install.
bitbucket_username ( ) Bitbucket username for remote install.
branch ( ) Branch setting.
create_form ( string $type ) Create Install Plugin or Install Theme page.
get_repo ( ) Repo setting.
github_access_token ( ) GitHub Access Token for remote install.
gitlab_access_token ( ) GitLab Access Token for remote install.
install ( string $type ) : boolean Install remote plugin or theme.
install_api ( ) API setting.
install_plugin_complete_actions ( $install_actions, $api, $plugin_file ) : mixed Remove activation links after plugin installation as no method to get $plugin_file.
install_theme_complete_actions ( $install_actions, $api, $theme_info ) : mixed Fix activation links after theme installation, no method to get proper theme name.
is_private_repo ( ) Setting for private repo.
register_settings ( string $type ) Add settings sections.

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

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

Need class-wp-upgrader.php for upgrade classes.
public __construct ( $type )
$type

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

Bitbucket password for remote install.
public bitbucket_password ( )

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

Bitbucket username for remote install.
public bitbucket_username ( )

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

Branch setting.
public branch ( )

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

Create Install Plugin or Install Theme page.
public create_form ( string $type )
$type string

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

Repo setting.
public get_repo ( )

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

GitHub Access Token for remote install.
public github_access_token ( )

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

GitLab Access Token for remote install.
public gitlab_access_token ( )

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

Install remote plugin or theme.
public install ( string $type ) : boolean
$type string
Результат boolean

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

API setting.
public install_api ( )

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

Remove activation links after plugin installation as no method to get $plugin_file.
public install_plugin_complete_actions ( $install_actions, $api, $plugin_file ) : mixed
$install_actions
$api
$plugin_file
Результат mixed

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

Fix activation links after theme installation, no method to get proper theme name.
public install_theme_complete_actions ( $install_actions, $api, $theme_info ) : mixed
$install_actions
$api
$theme_info
Результат mixed

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

Setting for private repo.
public is_private_repo ( )

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

Add settings sections.
public register_settings ( string $type )
$type string

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

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

Class options.
protected static array $install
Результат array