Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/editor/PhabricatorPasteEditor.php
| <?php | <?php | ||||
| final class PhabricatorPasteEditor | final class PhabricatorPasteEditor | ||||
| extends PhabricatorApplicationTransactionEditor { | extends PhabricatorApplicationTransactionEditor { | ||||
| private $pasteFile; | |||||
| public function getEditorApplicationClass() { | public function getEditorApplicationClass() { | ||||
| return 'PhabricatorPasteApplication'; | return 'PhabricatorPasteApplication'; | ||||
| } | } | ||||
| public function getEditorObjectsDescription() { | public function getEditorObjectsDescription() { | ||||
| return pht('Pastes'); | return pht('Pastes'); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | final class PhabricatorPasteEditor | ||||
| protected function getMailSubjectPrefix() { | protected function getMailSubjectPrefix() { | ||||
| return PhabricatorEnv::getEnvConfig('metamta.paste.subject-prefix'); | return PhabricatorEnv::getEnvConfig('metamta.paste.subject-prefix'); | ||||
| } | } | ||||
| protected function getMailTo(PhabricatorLiskDAO $object) { | protected function getMailTo(PhabricatorLiskDAO $object) { | ||||
| return array( | return array( | ||||
| $object->getAuthorPHID(), | $object->getAuthorPHID(), | ||||
| $this->requireActor()->getPHID(), | $this->getActingAsPHID(), | ||||
| ); | ); | ||||
| } | } | ||||
| public function getMailTagsMap() { | public function getMailTagsMap() { | ||||
| return array( | return array( | ||||
| PhabricatorPasteTransaction::MAILTAG_CONTENT => | PhabricatorPasteTransaction::MAILTAG_CONTENT => | ||||
| pht('Paste title, language or text changes.'), | pht('Paste title, language or text changes.'), | ||||
| PhabricatorPasteTransaction::MAILTAG_COMMENT => | PhabricatorPasteTransaction::MAILTAG_COMMENT => | ||||
| Show All 35 Lines | protected function shouldPublishFeedStory( | ||||
| array $xactions) { | array $xactions) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| protected function supportsSearch() { | protected function supportsSearch() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| protected function supportsWorkers() { | |||||
| return true; | |||||
| } | |||||
| } | } | ||||