Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/storage/PonderQuestion.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function save() { | public function save() { | ||||
if (!$this->getMailKey()) { | if (!$this->getMailKey()) { | ||||
$this->setMailKey(Filesystem::readRandomCharacters(20)); | $this->setMailKey(Filesystem::readRandomCharacters(20)); | ||||
} | } | ||||
return parent::save(); | return parent::save(); | ||||
} | } | ||||
public function getOriginalTitle() { | |||||
// TODO: Make this actually save/return the original title. | |||||
return $this->getTitle(); | |||||
} | |||||
public function getFullTitle() { | public function getFullTitle() { | ||||
$id = $this->getID(); | $id = $this->getID(); | ||||
$title = $this->getTitle(); | $title = $this->getTitle(); | ||||
return "Q{$id}: {$title}"; | return "Q{$id}: {$title}"; | ||||
} | } | ||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |