Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| <?php | <?php | ||||
| final class DifferentialRevision extends DifferentialDAO | final class DifferentialRevision extends DifferentialDAO | ||||
| implements | implements | ||||
| PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
| PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
| PhabricatorExtendedPolicyInterface, | PhabricatorExtendedPolicyInterface, | ||||
| PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
| PhrequentTrackableInterface, | PhrequentTrackableInterface, | ||||
| HarbormasterBuildableInterface, | HarbormasterBuildableInterface, | ||||
| PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
| PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
| PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
| PhabricatorMentionableInterface, | PhabricatorMentionableInterface, | ||||
| PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
| PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
| PhabricatorFulltextInterface { | PhabricatorFulltextInterface, | ||||
| PhabricatorConduitResultInterface { | |||||
| protected $title = ''; | protected $title = ''; | ||||
| protected $originalTitle; | protected $originalTitle; | ||||
| protected $status; | protected $status; | ||||
| protected $summary = ''; | protected $summary = ''; | ||||
| protected $testPlan = ''; | protected $testPlan = ''; | ||||
| ▲ Show 20 Lines • Show All 604 Lines • ▼ Show 20 Lines | |||||
| /* -( PhabricatorFulltextInterface )--------------------------------------- */ | /* -( PhabricatorFulltextInterface )--------------------------------------- */ | ||||
| public function newFulltextEngine() { | public function newFulltextEngine() { | ||||
| return new DifferentialRevisionFulltextEngine(); | return new DifferentialRevisionFulltextEngine(); | ||||
| } | } | ||||
| /* -( PhabricatorConduitResultInterface )---------------------------------- */ | |||||
| public function getFieldSpecificationsForConduit() { | |||||
| return array( | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('title') | |||||
| ->setType('string') | |||||
| ->setDescription(pht('The revision title.')), | |||||
| id(new PhabricatorConduitSearchFieldSpecification()) | |||||
| ->setKey('authorPHID') | |||||
| ->setType('phid') | |||||
| ->setDescription(pht('Revision author PHID.')), | |||||
| ); | |||||
| } | |||||
| public function getFieldValuesForConduit() { | |||||
| return array( | |||||
| 'title' => $this->getTitle(), | |||||
| 'authorPHID' => $this->getAuthorPHID(), | |||||
| ); | |||||
| } | |||||
| public function getConduitSearchAttachments() { | |||||
| return array(); | |||||
| } | |||||
| } | } | ||||