Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
Show All 20 Lines | public function addBlockList(PhabricatorDocumentRef $ref, array $blocks) { | ||||
$this->lists[] = array( | $this->lists[] = array( | ||||
'ref' => $ref, | 'ref' => $ref, | ||||
'blocks' => array_values($blocks), | 'blocks' => array_values($blocks), | ||||
); | ); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getDocumentRefs() { | |||||
return ipull($this->lists, 'ref'); | |||||
} | |||||
public function newTwoUpLayout() { | public function newTwoUpLayout() { | ||||
$rows = array(); | $rows = array(); | ||||
$lists = $this->lists; | $lists = $this->lists; | ||||
if (count($lists) != 2) { | if (count($lists) != 2) { | ||||
return array(); | return array(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |