PHP Класс Fragen\GitHub_Updater\Bitbucket_API

Get remote data from a Bitbucket repo.
Автор: Andy Fragen
Наследование: extends API
Показать файл Открыть проект

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

Метод Описание
__construct ( object $type ) Constructor.
ajax_maybe_authenticate_http ( $args, $url ) : mixed Add Basic Authentication $args to http_request_args filter hook for private Bitbucket repositories only during AJAX.
construct_download_link ( boolean $rollback = false, boolean $branch_switch = false ) : string Construct $this->type->download_link using Bitbucket API
get_language_pack ( array $headers ) : boolean Get/process Language Packs.
get_remote_branches ( ) : boolean Create array of branches and download links as array.
get_remote_changes ( $changes ) : boolean Read the remote CHANGES.md file
get_remote_info ( $file ) : boolean Read the remote file and parse headers.
get_remote_readme ( ) : boolean Read and parse remote readme.txt.
get_remote_tag ( ) : boolean Get the remote info to for tags.
get_repo_meta ( ) : boolean Read the repository meta from API
http_release_asset_auth ( $args, $url ) : mixed Removes Basic Authentication header for Bitbucket Release Assets.
load_hooks ( ) Load hooks for Bitbucket authentication headers.
maybe_authenticate_http ( $args, $url ) : mixed Add Basic Authentication $args to http_request_args filter hook for private Bitbucket repositories only.
remove_hooks ( ) Remove hooks for Bitbucket authentication headers.

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

Метод Описание
add_endpoints ( $git, $endpoint ) Added due to abstract class designation, not used for Bitbucket.
parse_changelog_response ( object $response ) : array | object Parse API response and return array with changelog in base64.
parse_meta_response ( object $response ) : array Parse API response and return array of meta variables.
parse_tag_response ( object $response ) : array | object Parse API response call and return only array of tag numbers.

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

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

Constructor.
public __construct ( object $type )
$type object

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

Added due to abstract class designation, not used for Bitbucket.
protected add_endpoints ( $git, $endpoint )
$git
$endpoint

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

Add Basic Authentication $args to http_request_args filter hook for private Bitbucket repositories only during AJAX.
public ajax_maybe_authenticate_http ( $args, $url ) : mixed
$args
$url
Результат mixed

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

Get/process Language Packs.
public get_language_pack ( array $headers ) : boolean
$headers array Array of headers of Language Pack.
Результат boolean When invalid response.

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

Create array of branches and download links as array.
public get_remote_branches ( ) : boolean
Результат boolean

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

Read the remote CHANGES.md file
public get_remote_changes ( $changes ) : boolean
$changes
Результат boolean

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

Read the remote file and parse headers.
public get_remote_info ( $file ) : boolean
$file
Результат boolean

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

Read and parse remote readme.txt.
public get_remote_readme ( ) : boolean
Результат boolean

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

Get the remote info to for tags.
public get_remote_tag ( ) : boolean
Результат boolean

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

Read the repository meta from API
public get_repo_meta ( ) : boolean
Результат boolean

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

Storage in AmazonS3 buckets, uses Query String Request Authentication Alternative.
public http_release_asset_auth ( $args, $url ) : mixed
$args
$url
Результат mixed

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

Load hooks for Bitbucket authentication headers.
public load_hooks ( )

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

Add Basic Authentication $args to http_request_args filter hook for private Bitbucket repositories only.
public maybe_authenticate_http ( $args, $url ) : mixed
$args
$url
Результат mixed $args

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

Parse API response and return array with changelog in base64.
protected parse_changelog_response ( object $response ) : array | object
$response object Response from API call.
Результат array | object $arr Array of changes in base64, object if error.

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

Parse API response and return array of meta variables.
protected parse_meta_response ( object $response ) : array
$response object Response from API call.
Результат array $arr Array of meta variables.

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

Parse API response call and return only array of tag numbers.
protected parse_tag_response ( object $response ) : array | object
$response object Response from API call.
Результат array | object Array of tag numbers, object is error.

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

Remove hooks for Bitbucket authentication headers.
public remove_hooks ( )