Lines Matching refs:this

48         $this->issueId = $issueId;
49 $this->projectId = $projectKey;
50 $this->isMergeRequest = $isMergeRequest;
51 $this->serviceID = $serviceName;
88 …$issue = $db->loadIssue($this->serviceID, $this->projectId, $this->issueId, $this->isMergeRequest);
92 $this->summary = $issue['summary'] ?: '';
93 $this->status = $issue['status'];
94 $this->type = $issue['type'];
95 $this->description = $issue['description'];
96 $this->setComponents($issue['components']);
97 $this->setLabels($issue['labels']);
98 $this->priority = $issue['priority'];
99 $this->duedate = $issue['duedate'];
100 $this->setVersions($issue['versions']);
101 $this->setUpdated($issue['updated']);
107 $sep = $this->pmService->getProjectIssueSeparator($this->isMergeRequest);
108 return $this->projectId . $sep . $this->issueId;
116 if (!end($this->errors)) {
119 return end($this->errors);
128 return $this->isMergeRequest;
131 $this->isMergeRequest = $isMergeRequest;
132 return $this;
148 'service' => $this->serviceID,
149 'project' => $this->getProject(),
150 'id' => $this->getKey(),
151 'isMergeRequest' => $this->isMergeRequest ? '1' : '0',
152 'summary' => $this->getSummary(),
153 'description' => $this->getDescription(),
154 'type' => $this->getType(),
155 'status' => $this->getStatus(),
156 'parent' => $this->getParent(),
157 'components' => $this->getComponents(),
158 'labels' => $this->getLabels(),
159 'priority' => $this->getPriority(),
160 'duedate' => $this->getDuedate(),
161 'versions' => $this->getVersions(),
162 'updated' => $this->getUpdated(),
171 return $this->projectId;
183 if ($annotateMergeRequest && $this->isMergeRequest) {
184 return '!' . $this->issueId;
186 return $this->issueId;
191 return $this->summary;
203 $this->summary = $summary;
204 return $this;
212 return $this->description;
222 $this->description = $description;
223 return $this;
231 return $this->type;
241 $this->type = $type;
242 return $this;
250 return $this->status;
260 $this->status = $status;
261 return $this;
269 return $this->parent;
274 $this->parent = $key;
275 return $this;
283 return $this->components;
299 $this->components = $components;
300 return $this;
308 return $this->labels;
321 $this->labels = $labels;
322 return $this;
330 return $this->priority;
340 $this->priority = $priority;
341 return $this;
349 return $this->duedate;
361 $this->duedate = $duedate;
362 return $this;
370 return $this->versions;
388 $this->versions = $versions;
389 return $this;
397 return $this->updated;
412 $this->updated = (int)$updated;
413 return $this;
426 $service = $serviceProvider->getServices()[$this->serviceID];
427 …$name = $this->projectId . $service::getProjectIssueSeparator($this->isMergeRequest) . $this->issu…
428 $url = $this->getIssueURL();
430 $status = cleanID($this->getStatus());
432 $name .= $this->getformattedIssueStatus();
435 $name .= ' ' . $this->getSummary();
438 …$classes = 'issuelink ' . cleanID($this->getType()) . ($this->isMergeRequest ? ' mergerequest' : '…
444 'data-service' => $this->serviceID,
445 'data-project' => $this->projectId,
446 'data-issueid' => $this->issueId,
447 'data-ismergerequest' => $this->isMergeRequest ? '1' : '0'
449 …return "<a href=\"$url\" " . buildAttributes($attributes, true) . '>' . $this->getTypeHTML() . "$n…
458 $serviceClassName = $serviceProvider->getServices()[$this->serviceID];
460 return $service->getIssueURL($this->projectId, $this->issueId, $this->isMergeRequest);
473 $status = $this->getStatus();
484 if ($this->isMergeRequest) {
487 $image = $this->getMaterialDesignTypeIcon();
488 return "<img src='$image' alt='$this->type' />";
509 if (!isset($typeIcon[cleanID($this->type)])) {
513 return DOKU_URL . '/lib/plugins/issuelinks/images/' . $typeIcon[cleanID($this->type)];
518 $this->assignee['name'] = $name;
519 $this->assignee['avatarURL'] = $avatar_url;
524 $this->getFromService();
526 if (!empty($this->assignee)) {
527 …$data['avatarHTML'] = "<img src=\"{$this->assignee['avatarURL']}\" alt=\"{$this->assignee['name']}…
529 if (!empty($this->labelData)) {
530 $labels = $this->getLabels();
535 if (isset($this->labelData[$label])) {
536 … $colors = "style=\"background-color: {$this->labelData[$label]['background-color']};";
537 $colors .= " color: {$this->labelData[$label]['color']};\"";
549 $serviceClassName = $serviceProvider->getServices()[$this->serviceID];
553 $service->retrieveIssue($this);
554 if ($this->isValid(true)) {
555 $this->saveToDB();
558 $this->errors[] = $e;
559 $this->isValid = false;
576 if ($recheck || $this->isValid === null) {
578 $service = $serviceProvider->getServices()[$this->serviceID];
579 $this->isValid = $service::isIssueValid($this);
581 return $this->isValid;
588 return $db->saveIssue($this);
594 $html .= "<h1 class=\"issueTitle\">{$this->getSummary()}</h1>";
600 $components = $this->getComponents();
609 $labels = $this->getLabels();
619 $description = $this->getDescription();
632 $data = $this->loadHelper('issuelinks_data');
634 if (!$this->isMergeRequest) {
637 $this->getServiceName(),
638 $this->getProject(),
639 $this->issueId,
640 $this->isMergeRequest
649 $html .= $this->getformattedIssueStatus($mr['status']) . ' ' . $a;
658 $this->getServiceName(),
659 $this->getProject(),
660 $this->issueId,
661 $this->isMergeRequest
682 return $this->serviceID;
691 $this->labelData[$labelName] = [
693 'color' => $this->calculateColor($color),