Modernize Files lists

Summary: Update to new UI stuff, prepare for mobile.

Test Plan: {F27167}

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D4198
This commit is contained in:
epriestley
2012-12-16 16:33:02 -08:00
parent 6f9683dc90
commit 6f0c87269b
22 changed files with 815 additions and 924 deletions

View File

@@ -5,6 +5,7 @@ final class PhabricatorFileQuery
private $ids;
private $phids;
private $authorPHIDs;
public function withIDs(array $ids) {
$this->ids = $ids;
@@ -16,6 +17,11 @@ final class PhabricatorFileQuery
return $this;
}
public function withAuthorPHIDs(array $phids) {
$this->authorPHIDs = $phids;
return $this;
}
public function loadPage() {
$table = new PhabricatorFile();
$conn_r = $table->establishConnection('r');
@@ -50,6 +56,13 @@ final class PhabricatorFileQuery
$this->phids);
}
if ($this->authorPHIDs) {
$where[] = qsprintf(
$conn_r,
'authorPHID IN (%Ls)',
$this->authorPHIDs);
}
return $this->formatWhereClause($where);
}