메소드 | 설명 | |
---|---|---|
__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. |
protected add_endpoints ( $git, $endpoint ) | ||
$git | ||
$endpoint |
public ajax_maybe_authenticate_http ( $args, $url ) : mixed | ||
$args | ||
$url | ||
리턴 | mixed |
public get_language_pack ( array $headers ) : boolean | ||
$headers | array | Array of headers of Language Pack. |
리턴 | boolean | When invalid response. |
public get_remote_branches ( ) : boolean | ||
리턴 | boolean |
public get_remote_changes ( $changes ) : boolean | ||
$changes | ||
리턴 | boolean |
public get_remote_info ( $file ) : boolean | ||
$file | ||
리턴 | boolean |
public get_remote_readme ( ) : boolean | ||
리턴 | boolean |
public get_remote_tag ( ) : boolean | ||
리턴 | boolean |
public get_repo_meta ( ) : boolean | ||
리턴 | boolean |
public http_release_asset_auth ( $args, $url ) : mixed | ||
$args | ||
$url | ||
리턴 | mixed |
public maybe_authenticate_http ( $args, $url ) : mixed | ||
$args | ||
$url | ||
리턴 | mixed | $args |
protected parse_meta_response ( object $response ) : array | ||
$response | object | Response from API call. |
리턴 | array | $arr Array of meta variables. |