Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/transactions/engine/PhabricatorTimelineEngine.php b/src/applications/transactions/engine/PhabricatorTimelineEngine.php
index 2fa0b1451d..8f32d81ff9 100644
--- a/src/applications/transactions/engine/PhabricatorTimelineEngine.php
+++ b/src/applications/transactions/engine/PhabricatorTimelineEngine.php
@@ -1,96 +1,97 @@
<?php
abstract class PhabricatorTimelineEngine
extends Phobject {
private $viewer;
private $object;
private $xactions;
+ private $request;
private $viewData;
final public static function newForObject($object) {
if ($object instanceof PhabricatorTimelineInterface) {
$engine = $object->newTimelineEngine();
} else {
$engine = new PhabricatorStandardTimelineEngine();
}
$engine->setObject($object);
return $engine;
}
final public function setViewer(PhabricatorUser $viewer) {
$this->viewer = $viewer;
return $this;
}
final public function getViewer() {
return $this->viewer;
}
final public function setObject($object) {
$this->object = $object;
return $this;
}
final public function getObject() {
return $this->object;
}
final public function setTransactions(array $xactions) {
assert_instances_of($xactions, 'PhabricatorApplicationTransaction');
$this->xactions = $xactions;
return $this;
}
final public function getTransactions() {
return $this->xactions;
}
final public function setRequest(AphrontRequest $request) {
$this->request = $request;
return $this;
}
final public function getRequest() {
return $this->request;
}
final public function setViewData(array $view_data) {
$this->viewData = $view_data;
return $this;
}
final public function getViewData() {
return $this->viewData;
}
final public function buildTimelineView() {
$view = $this->newTimelineView();
if (!($view instanceof PhabricatorApplicationTransactionView)) {
throw new Exception(
pht(
'Expected "newTimelineView()" to return an object of class "%s" '.
'(in engine "%s").',
'PhabricatorApplicationTransactionView',
get_class($this)));
}
$viewer = $this->getViewer();
$object = $this->getObject();
$xactions = $this->getTransactions();
return $view
->setViewer($viewer)
->setObject($object)
->setObjectPHID($object->getPHID())
->setTransactions($xactions);
}
protected function newTimelineView() {
return new PhabricatorApplicationTransactionView();
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 12:47 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115
Default Alt Text
(2 KB)

Event Timeline