Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/phid/DrydockResourcePHIDType.php
Show All 23 Lines | public function loadHandles( | ||||
PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
array $handles, | array $handles, | ||||
array $objects) { | array $objects) { | ||||
foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
$resource = $objects[$phid]; | $resource = $objects[$phid]; | ||||
$id = $resource->getID(); | $id = $resource->getID(); | ||||
$handle->setName($resource->getName()); | $handle->setName( | ||||
pht( | |||||
'Resource %d: %s', | |||||
$id, | |||||
$resource->getName())); | |||||
$handle->setURI("/drydock/resource/{$id}/"); | $handle->setURI("/drydock/resource/{$id}/"); | ||||
} | } | ||||
} | } | ||||
} | } |