3 final class DifferentialViewStateQuery
4 extends PhabricatorCursorPagedPolicyAwareQuery
{
10 public function withIDs(array $ids) {
15 public function withViewerPHIDs(array $phids) {
16 $this->viewerPHIDs
= $phids;
20 public function withObjectPHIDs(array $phids) {
21 $this->objectPHIDs
= $phids;
25 public function newResultObject() {
26 return new DifferentialViewState();
29 protected function buildWhereClauseParts(AphrontDatabaseConnection
$conn) {
30 $where = parent
::buildWhereClauseParts($conn);
32 if ($this->ids
!== null) {
39 if ($this->viewerPHIDs
!== null) {
42 'viewerPHID IN (%Ls)',
46 if ($this->objectPHIDs
!== null) {
49 'objectPHID IN (%Ls)',
56 public function getQueryApplicationClass() {
57 return 'PhabricatorDifferentialApplication';