Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPaste.php
<?php | <?php | ||||
final class PhabricatorPaste extends PhabricatorPasteDAO | final class PhabricatorPaste extends PhabricatorPasteDAO | ||||
implements | implements | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorMentionableInterface, | PhabricatorMentionableInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorApplicationTransactionInterface { | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorSpacesInterface { | |||||
protected $title; | protected $title; | ||||
protected $authorPHID; | protected $authorPHID; | ||||
protected $filePHID; | protected $filePHID; | ||||
protected $language; | protected $language; | ||||
protected $parentPHID; | protected $parentPHID; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
protected $mailKey; | protected $mailKey; | ||||
protected $spacePHID; | |||||
private $content = self::ATTACHABLE; | private $content = self::ATTACHABLE; | ||||
private $rawContent = self::ATTACHABLE; | private $rawContent = self::ATTACHABLE; | ||||
public static function initializeNewPaste(PhabricatorUser $actor) { | public static function initializeNewPaste(PhabricatorUser $actor) { | ||||
$app = id(new PhabricatorApplicationQuery()) | $app = id(new PhabricatorApplicationQuery()) | ||||
->setViewer($actor) | ->setViewer($actor) | ||||
->withClasses(array('PhabricatorPasteApplication')) | ->withClasses(array('PhabricatorPasteApplication')) | ||||
▲ Show 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function willRenderTimeline( | public function willRenderTimeline( | ||||
PhabricatorApplicationTransactionView $timeline, | PhabricatorApplicationTransactionView $timeline, | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
return $timeline; | return $timeline; | ||||
} | } | ||||
/* -( PhabricatorSpacesInterface )----------------------------------------- */ | |||||
public function getSpacePHID() { | |||||
return $this->spacePHID; | |||||
} | |||||
} | } |