PHP Class Fragen\GitHub_Updater\Install

Install / directly from GitHub Updater.
Inheritance: extends Base
Datei anzeigen Open project: afragen/github-updater

Protected Properties

Property Type Description
$install array Class options.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

bitbucket_password() public method

Bitbucket password for remote install.
public bitbucket_password ( )

bitbucket_username() public method

Bitbucket username for remote install.
public bitbucket_username ( )

branch() public method

Branch setting.
public branch ( )

create_form() public method

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

get_repo() public method

Repo setting.
public get_repo ( )

github_access_token() public method

GitHub Access Token for remote install.
public github_access_token ( )

gitlab_access_token() public method

GitLab Access Token for remote install.
public gitlab_access_token ( )

install() public method

Install remote plugin or theme.
public install ( string $type ) : boolean
$type string
return boolean

install_api() public method

API setting.
public install_api ( )

install_plugin_complete_actions() public method

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
return mixed

install_theme_complete_actions() public method

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
return mixed

is_private_repo() public method

Setting for private repo.
public is_private_repo ( )

register_settings() public method

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

Property Details

$install protected_oe static_oe property

Class options.
protected static array $install
return array