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 buildWhereClauseParts(AphrontDatabaseConnection
$conn) {
42 $where = parent
::buildWhereClauseParts($conn);
44 if ($this->ids
!== null) {
51 if ($this->phids
!== null) {
54 'export.phid IN (%Ls)',
58 if ($this->authorPHIDs
!== null) {
61 'export.authorPHID IN (%Ls)',
65 if ($this->isDisabled
!== null) {
68 'export.isDisabled = %d',
69 (int)$this->isDisabled
);
72 if ($this->secretKeys
!== null) {
75 'export.secretKey IN (%Ls)',
82 protected function getPrimaryTableAlias() {
86 public function getQueryApplicationClass() {
87 return 'PhabricatorCalendarApplication';