PHP 클래스 Fragen\GitHub_Updater\Bitbucket_API

Get remote data from a Bitbucket repo.
저자: Andy Fragen
상속: extends API
파일 보기 프로젝트 열기: afragen/github-updater

공개 메소드들

메소드 설명
__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 ( )