Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProject.php
| Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | final class PhabricatorProject extends PhabricatorProjectDAO | ||||
| public function getColor() { | public function getColor() { | ||||
| if ($this->isArchived()) { | if ($this->isArchived()) { | ||||
| return PHUITagView::COLOR_DISABLED; | return PHUITagView::COLOR_DISABLED; | ||||
| } | } | ||||
| return $this->color; | return $this->color; | ||||
| } | } | ||||
| public function getURI() { | |||||
| $id = $this->getID(); | |||||
| return "/project/view/{$id}/"; | |||||
| } | |||||
| public function save() { | public function save() { | ||||
| if (!$this->getMailKey()) { | if (!$this->getMailKey()) { | ||||
| $this->setMailKey(Filesystem::readRandomCharacters(20)); | $this->setMailKey(Filesystem::readRandomCharacters(20)); | ||||
| } | } | ||||
| if (!strlen($this->getPHID())) { | if (!strlen($this->getPHID())) { | ||||
| $this->setPHID($this->generatePHID()); | $this->setPHID($this->generatePHID()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||