PHP 클래스 Fragen\GitHub_Updater\GitLab_API

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

보호된 프로퍼티들

프로퍼티 타입 설명
$method null Holds loose class method name.

공개 메소드들

메소드 설명
__construct ( object $type ) Constructor.
construct_download_link ( boolean $rollback = false, boolean $branch_switch = false ) : string Construct $this->type->download_link using GitLab API.
get_gitlab_id ( ) : string | integer Get GitLab project ID and project meta.
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 remote info for tags.
get_repo_meta ( ) : boolean Read the repository meta from API.

보호된 메소드들

메소드 설명
add_endpoints ( $git, $endpoint ) : string Create GitLab API endpoints.
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 | array $response ) : object | array Parse API response call and return only array of tag numbers.

비공개 메소드들

메소드 설명
add_access_token_endpoint ( $git, $endpoint ) : string Add appropriate access token to endpoint.

메소드 상세

__construct() 공개 메소드

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

add_endpoints() 보호된 메소드

Create GitLab API endpoints.
protected add_endpoints ( $git, $endpoint ) : string
$git object
$endpoint string
리턴 string

get_gitlab_id() 공개 메소드

Get GitLab project ID and project meta.
public get_gitlab_id ( ) : string | integer
리턴 string | integer

get_language_pack() 공개 메소드

Language Packs cannot reside on GitLab CE/Enterprise.
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 remote info for tags.
public get_remote_tag ( ) : boolean
리턴 boolean

get_repo_meta() 공개 메소드

Read the repository meta from API.
public get_repo_meta ( ) : boolean
리턴 boolean

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 | array $response ) : object | array
$response object | array Response from API call for tags.
리턴 object | array Array of tag numbers, object is error.

프로퍼티 상세

$method 보호되어 있는 정적으로 프로퍼티

Holds loose class method name.
protected static null $method
리턴 null