@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorAuthInviteDialogException
4 extends PhabricatorAuthInviteException {
5
6 private $title;
7 private $body;
8 private $submitButtonText;
9 private $submitButtonURI;
10 private $cancelButtonText;
11 private $cancelButtonURI;
12
13 public function __construct($title, $body) {
14 $this->title = $title;
15 $this->body = $body;
16 parent::__construct(pht('%s: %s', $title, $body));
17 }
18
19 public function getTitle() {
20 return $this->title;
21 }
22
23 public function getBody() {
24 return $this->body;
25 }
26
27 public function setSubmitButtonText($submit_button_text) {
28 $this->submitButtonText = $submit_button_text;
29 return $this;
30 }
31
32 public function getSubmitButtonText() {
33 return $this->submitButtonText;
34 }
35
36 public function setSubmitButtonURI($submit_button_uri) {
37 $this->submitButtonURI = $submit_button_uri;
38 return $this;
39 }
40
41 public function getSubmitButtonURI() {
42 return $this->submitButtonURI;
43 }
44
45 public function setCancelButtonText($cancel_button_text) {
46 $this->cancelButtonText = $cancel_button_text;
47 return $this;
48 }
49
50 public function getCancelButtonText() {
51 return $this->cancelButtonText;
52 }
53
54 public function setCancelButtonURI($cancel_button_uri) {
55 $this->cancelButtonURI = $cancel_button_uri;
56 return $this;
57 }
58
59 public function getCancelButtonURI() {
60 return $this->cancelButtonURI;
61 }
62
63}