Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/phid/PholioImagePHIDType.php
Show All 26 Lines | final class PholioImagePHIDType extends PhabricatorPHIDType { | ||||
public function loadHandles( | 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) { | ||||
$image = $objects[$phid]; | $image = $objects[$phid]; | ||||
$id = $image->getID(); | $handle | ||||
$mock_id = $image->getMockID(); | ->setName($image->getName()) | ||||
$name = $image->getName(); | ->setURI($image->getURI()); | ||||
$handle->setURI("/M{$mock_id}/{$id}/"); | |||||
$handle->setName($name); | |||||
$handle->setFullName($name); | |||||
} | } | ||||
} | } | ||||
} | } |