Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioMock.php
<?php | <?php | ||||
final class PholioMock extends PholioDAO | final class PholioMock extends PholioDAO | ||||
implements | implements | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorTimelineInterface, | |||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorSpacesInterface, | PhabricatorSpacesInterface, | ||||
PhabricatorMentionableInterface, | PhabricatorMentionableInterface, | ||||
PhabricatorFulltextInterface, | PhabricatorFulltextInterface, | ||||
PhabricatorFerretInterface { | PhabricatorFerretInterface { | ||||
const STATUS_OPEN = 'open'; | const STATUS_OPEN = 'open'; | ||||
▲ Show 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getApplicationTransactionTemplate() { | public function getApplicationTransactionTemplate() { | ||||
return new PholioTransaction(); | return new PholioTransaction(); | ||||
} | } | ||||
public function willRenderTimeline( | |||||
PhabricatorApplicationTransactionView $timeline, | |||||
AphrontRequest $request) { | |||||
PholioMockQuery::loadImages( | |||||
$request->getUser(), | |||||
array($this), | |||||
$need_inline_comments = true); | |||||
$timeline->setMock($this); | |||||
return $timeline; | |||||
} | |||||
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */ | /* -( PhabricatorTokenReceiverInterface )---------------------------------- */ | ||||
public function getUsersToNotifyOfTokenGiven() { | public function getUsersToNotifyOfTokenGiven() { | ||||
return array( | return array( | ||||
$this->getAuthorPHID(), | $this->getAuthorPHID(), | ||||
); | ); | ||||
Show All 33 Lines | /* -( PhabricatorFulltextInterface )--------------------------------------- */ | ||||
public function newFulltextEngine() { | public function newFulltextEngine() { | ||||
return new PholioMockFulltextEngine(); | return new PholioMockFulltextEngine(); | ||||
} | } | ||||
/* -( PhabricatorFerretInterface )----------------------------------------- */ | /* -( PhabricatorFerretInterface )----------------------------------------- */ | ||||
public function newFerretEngine() { | public function newFerretEngine() { | ||||
return new PholioMockFerretEngine(); | return new PholioMockFerretEngine(); | ||||
} | } | ||||
/* -( PhabricatorTimelineInterace )---------------------------------------- */ | |||||
public function newTimelineEngine() { | |||||
return new PholioMockTimelineEngine(); | |||||
} | |||||
} | } |