Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/controller/PhabricatorController.php
Show First 20 Lines • Show All 475 Lines • ▼ Show 20 Lines | if ($object) { | ||||
} | } | ||||
} | } | ||||
return $curtain; | return $curtain; | ||||
} | } | ||||
protected function buildTransactionTimeline( | protected function buildTransactionTimeline( | ||||
PhabricatorApplicationTransactionInterface $object, | PhabricatorApplicationTransactionInterface $object, | ||||
PhabricatorApplicationTransactionQuery $query, | PhabricatorApplicationTransactionQuery $query = null, | ||||
PhabricatorMarkupEngine $engine = null, | PhabricatorMarkupEngine $engine = null, | ||||
$view_data = array()) { | $view_data = array()) { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$xaction = $object->getApplicationTransactionTemplate(); | $xaction = $object->getApplicationTransactionTemplate(); | ||||
if (!$query) { | |||||
$query = PhabricatorApplicationTransactionQuery::newQueryForObject( | |||||
$object); | |||||
if (!$query) { | |||||
throw new Exception( | |||||
pht( | |||||
'Unable to find transaction query for object of class "%s".', | |||||
get_class($object))); | |||||
} | |||||
} | |||||
$pager = id(new AphrontCursorPagerView()) | $pager = id(new AphrontCursorPagerView()) | ||||
->readFromRequest($request) | ->readFromRequest($request) | ||||
->setURI(new PhutilURI( | ->setURI(new PhutilURI( | ||||
'/transactions/showolder/'.$object->getPHID().'/')); | '/transactions/showolder/'.$object->getPHID().'/')); | ||||
$xactions = $query | $xactions = $query | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withObjectPHIDs(array($object->getPHID())) | ->withObjectPHIDs(array($object->getPHID())) | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |