3 final class PhabricatorCalendarExportQuery
4 extends PhabricatorCursorPagedPolicyAwareQuery
{
12 public function withIDs(array $ids) {
17 public function withPHIDs(array $phids) {
18 $this->phids
= $phids;
22 public function withAuthorPHIDs(array $phids) {
23 $this->authorPHIDs
= $phids;
27 public function withIsDisabled($is_disabled) {
28 $this->isDisabled
= $is_disabled;
32 public function withSecretKeys(array $keys) {
33 $this->secretKeys
= $keys;
37 public function newResultObject() {
38 return new PhabricatorCalendarExport();
41 protected function loadPage() {
42 return $this->loadStandardPage($this->newResultObject());
45 protected function buildWhereClauseParts(AphrontDatabaseConnection
$conn) {
46 $where = parent
::buildWhereClauseParts($conn);
48 if ($this->ids
!== null) {
55 if ($this->phids
!== null) {
58 'export.phid IN (%Ls)',
62 if ($this->authorPHIDs
!== null) {
65 'export.authorPHID IN (%Ls)',
69 if ($this->isDisabled
!== null) {
72 'export.isDisabled = %d',
73 (int)$this->isDisabled
);
76 if ($this->secretKeys
!== null) {
79 'export.secretKey IN (%Ls)',
86 protected function getPrimaryTableAlias() {
90 public function getQueryApplicationClass() {
91 return 'PhabricatorCalendarApplication';