Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioTransactionView.php
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | protected function renderTransactionContent( | ||||
} | } | ||||
return $out; | return $out; | ||||
} | } | ||||
private function renderInlineContent(PholioTransaction $inline) { | private function renderInlineContent(PholioTransaction $inline) { | ||||
$comment = $inline->getComment(); | $comment = $inline->getComment(); | ||||
$mock = $this->getMock(); | $mock = $this->getMock(); | ||||
$images = $mock->getAllImages(); | $images = $mock->getImages(); | ||||
$images = mpull($images, null, 'getID'); | $images = mpull($images, null, 'getID'); | ||||
$image = idx($images, $comment->getImageID()); | $image = idx($images, $comment->getImageID()); | ||||
if (!$image) { | if (!$image) { | ||||
throw new Exception(pht('No image attached!')); | throw new Exception(pht('No image attached!')); | ||||
} | } | ||||
$file = $image->getFile(); | $file = $image->getFile(); | ||||
Show All 33 Lines |