Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPaste.php
Show All 36 Lines | public static function initializeNewPaste(PhabricatorUser $actor) { | ||||
return id(new PhabricatorPaste()) | return id(new PhabricatorPaste()) | ||||
->setTitle('') | ->setTitle('') | ||||
->setAuthorPHID($actor->getPHID()) | ->setAuthorPHID($actor->getPHID()) | ||||
->setViewPolicy($view_policy) | ->setViewPolicy($view_policy) | ||||
->setEditPolicy($edit_policy); | ->setEditPolicy($edit_policy); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
return '/P'.$this->getID(); | return '/'.$this->getMonogram(); | ||||
} | |||||
public function getMonogram() { | |||||
return 'P'.$this->getID(); | |||||
} | } | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'title' => 'text255', | 'title' => 'text255', | ||||
'language' => 'text64', | 'language' => 'text64', | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |