Lines Matching refs:this

27         $this->dokuHTTPClient = new \DokuHTTPClient();
31 $this->gitlabUrl = $gitLabUrl ? trim($gitLabUrl, '/') : null;
33 $this->token = $authToken;
79 if (null === $this->gitlabUrl) {
80 $this->configError = 'GitLab URL not set!';
84 if (empty($this->token)) {
85 $this->configError = 'Authentication token is missing!';
90 $user = $this->makeSingleGitLabGetRequest('/user');
92 … $this->configError = 'The GitLab authentication failed with message: ' . hsc($e->getMessage());
95 $this->user = $user;
110 return $this->makeGitLabRequest($endpoint, [], 'GET');
128 $url = $this->gitlabUrl . '/api/v4' . strtolower($endpoint);
130 'PRIVATE-TOKEN' => $this->token,
135 return $this->makeHTTPRequest($this->dokuHTTPClient, $url, $requestHeaders, $data, $method);
146 if (null !== $this->gitlabUrl) {
147 $url = $this->gitlabUrl . '/profile/personal_access_tokens';
152 $message .= $this->configError;
157 $configForm->addTextInput('gitlab_url', 'GitLab Url')->val($this->gitlabUrl);
180 $name = $this->user['name'];
181 $url = $this->user['web_url'];
193 $groups = $this->makeSingleGitLabGetRequest('/groups');
207 … $projects = $this->makeSingleGitLabGetRequest("/groups/$organisation/projects?per_page=100");
215 $repoHooks = $this->makeSingleGitLabGetRequest($endpoint);
220 $repoHooks = array_filter($repoHooks, [$this, 'isOurIssueHook']);
246 $data = $this->makeGitLabRequest("/projects/$encProject/hooks", $data, 'POST');
247 $status = $this->dokuHTTPClient->status;
266 $data = $this->makeGitLabRequest($endpoint, [], 'DELETE');
267 $status = $this->dokuHTTPClient->status;
288 …return $this->gitlabUrl . '/' . $projectId . ($isMergeRequest ? '/merge_requests/' : '/issues/') .…
315 $info = $this->makeSingleGitLabGetRequest($endpoint);
316 $this->setIssueData($issue, $info);
320 $issues = $this->parseMergeRequestDescription($issue->getProject(), $mergeRequestText);
326 $projectLabelData = $this->makeSingleGitLabGetRequest($endpoint);
341 $issue->setType($this->getTypeFromLabels($info['labels']));
421 $issues = $this->makeSingleGitLabGetRequest($endpoint);
422 $this->total = $this->estimateTotal($perPage, count($issues));
424 $mrs = $this->makeSingleGitLabGetRequest($mrEndpoint);
425 $this->total += $this->estimateTotal($perPage, count($mrs));
430 $this->setIssueData($issue, $issueData);
443 $this->setIssueData($issue, $mrData);
447 $issues = $this->parseMergeRequestDescription($projectKey, $issueText);
470 $headers = $this->dokuHTTPClient->resp_headers;
495 return $this->total;