Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/item/NuanceGitHubEventItemType.php
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | return id(new PHUIObjectBoxView()) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ||||
->appendChild($property_list); | ->appendChild($property_list); | ||||
} | } | ||||
protected function handleCommand( | protected function handleCommand( | ||||
NuanceItem $item, | NuanceItem $item, | ||||
NuanceItemCommand $command) { | NuanceItemCommand $command) { | ||||
// TODO: This code is no longer reachable, and has moved to | |||||
// CommandImplementation subclasses. | |||||
$action = $command->getCommand(); | $action = $command->getCommand(); | ||||
switch ($action) { | switch ($action) { | ||||
case 'sync': | case 'sync': | ||||
return $this->syncItem($item, $command); | return $this->syncItem($item, $command); | ||||
case 'reload': | case 'reload': | ||||
$this->reloadExternalObject($item); | $this->reloadExternalObject($item); | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |