[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorSetupIssue { 4 5 private $issueKey; 6 private $name; 7 private $message; 8 private $isFatal; 9 private $summary; 10 private $shortName; 11 12 private $isIgnored = false; 13 private $phpExtensions = array(); 14 private $phabricatorConfig = array(); 15 private $relatedPhabricatorConfig = array(); 16 private $phpConfig = array(); 17 private $commands = array(); 18 private $mysqlConfig = array(); 19 private $originalPHPConfigValues = array(); 20 21 public function addCommand($command) { 22 $this->commands[] = $command; 23 return $this; 24 } 25 26 public function getCommands() { 27 return $this->commands; 28 } 29 30 public function setShortName($short_name) { 31 $this->shortName = $short_name; 32 return $this; 33 } 34 35 public function getShortName() { 36 if ($this->shortName === null) { 37 return $this->getName(); 38 } 39 return $this->shortName; 40 } 41 42 public function setName($name) { 43 $this->name = $name; 44 return $this; 45 } 46 47 public function getName() { 48 return $this->name; 49 } 50 51 public function setSummary($summary) { 52 $this->summary = $summary; 53 return $this; 54 } 55 56 public function getSummary() { 57 if ($this->summary === null) { 58 return $this->getMessage(); 59 } 60 return $this->summary; 61 } 62 63 public function setIssueKey($issue_key) { 64 $this->issueKey = $issue_key; 65 return $this; 66 } 67 68 public function getIssueKey() { 69 return $this->issueKey; 70 } 71 72 public function setIsFatal($is_fatal) { 73 $this->isFatal = $is_fatal; 74 return $this; 75 } 76 77 public function getIsFatal() { 78 return $this->isFatal; 79 } 80 81 public function addPHPConfig($php_config) { 82 $this->phpConfig[] = $php_config; 83 return $this; 84 } 85 86 /** 87 * Set an explicit value to display when showing the user PHP configuration 88 * values. 89 * 90 * If Phabricator has changed a value by the time a config issue is raised, 91 * you can provide the original value here so the UI makes sense. For example, 92 * we alter `memory_limit` during startup, so if the original value is not 93 * provided it will look like it is always set to `-1`. 94 * 95 * @param string PHP configuration option to provide a value for. 96 * @param string Explicit value to show in the UI. 97 * @return this 98 */ 99 public function addPHPConfigOriginalValue($php_config, $value) { 100 $this->originalPHPConfigValues[$php_config] = $value; 101 return $this; 102 } 103 104 public function getPHPConfigOriginalValue($php_config, $default = null) { 105 return idx($this->originalPHPConfigValues, $php_config, $default); 106 } 107 108 public function getPHPConfig() { 109 return $this->phpConfig; 110 } 111 112 public function addMySQLConfig($mysql_config) { 113 $this->mysqlConfig[] = $mysql_config; 114 return $this; 115 } 116 117 public function getMySQLConfig() { 118 return $this->mysqlConfig; 119 } 120 121 public function addPhabricatorConfig($phabricator_config) { 122 $this->phabricatorConfig[] = $phabricator_config; 123 return $this; 124 } 125 126 public function getPhabricatorConfig() { 127 return $this->phabricatorConfig; 128 } 129 130 public function addRelatedPhabricatorConfig($phabricator_config) { 131 $this->relatedPhabricatorConfig[] = $phabricator_config; 132 return $this; 133 } 134 135 public function getRelatedPhabricatorConfig() { 136 return $this->relatedPhabricatorConfig; 137 } 138 139 public function addPHPExtension($php_extension) { 140 $this->phpExtensions[] = $php_extension; 141 return $this; 142 } 143 144 public function getPHPExtensions() { 145 return $this->phpExtensions; 146 } 147 148 public function setMessage($message) { 149 $this->message = $message; 150 return $this; 151 } 152 153 public function getMessage() { 154 return $this->message; 155 } 156 157 public function setIsIgnored($is_ignored) { 158 $this->isIgnored = $is_ignored; 159 return $this; 160 } 161 162 public function getIsIgnored() { 163 return $this->isIgnored; 164 } 165 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |