Property | Type | Description | |
---|---|---|---|
$method | null | Holds loose class method name. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
add_access_token_endpoint ( $git, $endpoint ) : string | Add appropriate access token to endpoint. |
protected add_endpoints ( $git, $endpoint ) : string | ||
$git | object | |
$endpoint | string | |
return | string |
public get_gitlab_id ( ) : string | integer | ||
return | string | integer |
public get_language_pack ( array $headers ) : boolean | ||
$headers | array | Array of headers of Language Pack. |
return | boolean | When invalid response. |
public get_remote_branches ( ) : boolean | ||
return | boolean |
public get_remote_changes ( $changes ) : boolean | ||
$changes | ||
return | boolean |
public get_remote_info ( $file ) : boolean | ||
$file | ||
return | boolean |
public get_remote_readme ( ) : boolean | ||
return | boolean |
public get_remote_tag ( ) : boolean | ||
return | boolean |
public get_repo_meta ( ) : boolean | ||
return | boolean |
protected parse_meta_response ( object $response ) : array | ||
$response | object | Response from API call. |
return | array | $arr Array of meta variables. |
protected static null $method | ||
return | null |