Differential D20275 Diff 48390 src/applications/project/controller/PhabricatorProjectBoardViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectBoardViewController.php
Show First 20 Lines • Show All 625 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$vectors = $ordering->getSortVectorsForObjects($all_tasks); | $vectors = $ordering->getSortVectorsForObjects($all_tasks); | ||||
$vector_map = array(); | $vector_map = array(); | ||||
foreach ($vectors as $task_phid => $vector) { | foreach ($vectors as $task_phid => $vector) { | ||||
$vector_map[$task_phid][$order_key] = $vector; | $vector_map[$task_phid][$order_key] = $vector; | ||||
} | } | ||||
$header_keys = $ordering->getHeaderKeysForObjects($all_tasks); | $header_keys = $ordering->getHeaderKeysForObjects($all_tasks); | ||||
$order_maps = array(); | |||||
$order_maps[] = $ordering->toDictionary(); | |||||
$properties = array(); | $properties = array(); | ||||
$behavior_config = array( | $behavior_config = array( | ||||
'moveURI' => $this->getApplicationURI('move/'.$project->getID().'/'), | 'moveURI' => $this->getApplicationURI('move/'.$project->getID().'/'), | ||||
'uploadURI' => '/file/dropupload/', | 'uploadURI' => '/file/dropupload/', | ||||
'coverURI' => $this->getApplicationURI('cover/'), | 'coverURI' => $this->getApplicationURI('cover/'), | ||||
'chunkThreshold' => PhabricatorFileStorageEngine::getChunkThreshold(), | 'chunkThreshold' => PhabricatorFileStorageEngine::getChunkThreshold(), | ||||
'pointsEnabled' => ManiphestTaskPoints::getIsEnabled(), | 'pointsEnabled' => ManiphestTaskPoints::getIsEnabled(), | ||||
'boardPHID' => $project->getPHID(), | 'boardPHID' => $project->getPHID(), | ||||
'order' => $this->sortKey, | 'order' => $this->sortKey, | ||||
'orders' => $order_maps, | |||||
'headers' => $headers, | 'headers' => $headers, | ||||
'headerKeys' => $header_keys, | 'headerKeys' => $header_keys, | ||||
'templateMap' => $templates, | 'templateMap' => $templates, | ||||
'columnMaps' => $column_maps, | 'columnMaps' => $column_maps, | ||||
'orderMaps' => $vector_map, | 'orderMaps' => $vector_map, | ||||
'propertyMaps' => $properties, | 'propertyMaps' => $properties, | ||||
'boardID' => $board_id, | 'boardID' => $board_id, | ||||
▲ Show 20 Lines • Show All 742 Lines • Show Last 20 Lines |