Differential D10585 Diff 25583 src/applications/diffusion/controller/DiffusionBranchTableController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBranchTableController.php
Show All 16 Lines | public function processRequest() { | ||||
$pager->setURI($request->getRequestURI(), 'offset'); | $pager->setURI($request->getRequestURI(), 'offset'); | ||||
$pager->setOffset($request->getInt('offset')); | $pager->setOffset($request->getInt('offset')); | ||||
// TODO: Add support for branches that contain commit | // TODO: Add support for branches that contain commit | ||||
$branches = $this->callConduitWithDiffusionRequest( | $branches = $this->callConduitWithDiffusionRequest( | ||||
'diffusion.branchquery', | 'diffusion.branchquery', | ||||
array( | array( | ||||
'offset' => $pager->getOffset(), | 'offset' => $pager->getOffset(), | ||||
'limit' => $pager->getPageSize() + 1 | 'limit' => $pager->getPageSize() + 1, | ||||
)); | )); | ||||
$branches = $pager->sliceResults($branches); | $branches = $pager->sliceResults($branches); | ||||
$branches = DiffusionRepositoryRef::loadAllFromDictionaries($branches); | $branches = DiffusionRepositoryRef::loadAllFromDictionaries($branches); | ||||
$content = null; | $content = null; | ||||
if (!$branches) { | if (!$branches) { | ||||
$content = $this->renderStatusMessage( | $content = $this->renderStatusMessage( | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |