Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProject.php
| Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | public function getURI() { | ||||
| return "/project/view/{$id}/"; | return "/project/view/{$id}/"; | ||||
| } | } | ||||
| public function getProfileURI() { | public function getProfileURI() { | ||||
| $id = $this->getID(); | $id = $this->getID(); | ||||
| return "/project/profile/{$id}/"; | return "/project/profile/{$id}/"; | ||||
| } | } | ||||
| public function getWorkboardURI() { | |||||
| return urisprintf('/project/board/%d/', $this->getID()); | |||||
| } | |||||
| 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 505 Lines • Show Last 20 Lines | |||||