3 final class DiffusionPathQuery
extends Phobject
{
7 public function withPathIDs(array $path_ids) {
8 $this->pathIDs
= $path_ids;
12 public function execute() {
13 $conn = id(new PhabricatorRepository())->establishConnection('r');
15 $where = $this->buildWhereClause($conn);
17 $results = queryfx_all(
19 'SELECT * FROM %T %Q',
20 PhabricatorRepository
::TABLE_PATH
,
23 return ipull($results, null, 'id');
26 protected function buildWhereClause(AphrontDatabaseConnection
$conn) {
37 return qsprintf($conn, 'WHERE %LA', $where);
39 return qsprintf($conn, '');