Enhanced PholioMockQuery

Summary:
Images and cover files can now be attached calling need functions for PholioMockQuery.
Mock list will show cover files for mocks.
MockView uses new feature to show the first image

Test Plan: Verified that images are shown.

Reviewers: epriestley

CC: aran, Korvin

Maniphest Tasks: T2364

Differential Revision: https://secure.phabricator.com/D4644
This commit is contained in:
Lauri-Henrik Jalonen
2013-01-25 13:27:49 -08:00
committed by epriestley
parent 9d23a49c91
commit 3838e14ad8
6 changed files with 107 additions and 10 deletions

View File

@@ -18,6 +18,8 @@ final class PholioMockViewController extends PholioController {
$mock = id(new PholioMockQuery())
->setViewer($user)
->withIDs(array($this->id))
->needImages(true)
->needCoverFiles(true)
->executeOne();
if (!$mock) {