1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Make buildWhereClause() a method of AphrontCursorPagedPolicyAwareQuery

Summary:
Ref T4100. Ref T5595.

To support a unified "Projects:" query across all applications, a future diff is going to add a set of "Edge Logic" capabilities to `PolicyAwareQuery` which write the required SELECT, JOIN, WHERE, HAVING and GROUP clauses for you.

With the addition of "Edge Logic", we'll have three systems which may need to build components of query claues: ordering/paging, customfields/applicationsearch, and edge logic.

For most clauses, queries don't currently call into the parent explicitly to get default components. I want to move more query construction logic up the class tree so it can be shared.

For most methods, this isn't a problem, but many subclasses define a `buildWhereClause()`. Make all such definitions protected and consistent.

This causes no behavioral changes.

Test Plan: Ran `arc unit --everything`, which does a pretty through job of verifying this statically.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: yelirekim, hach-que, epriestley

Maniphest Tasks: T4100, T5595

Differential Revision: https://secure.phabricator.com/D12453
This commit is contained in:
epriestley 2015-04-18 07:08:30 -07:00
parent 01c99335fd
commit f5580c7a08
114 changed files with 162 additions and 116 deletions

View file

@ -93,7 +93,7 @@ final class AlmanacBindingQuery
return $bindings;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -49,7 +49,7 @@ final class AlmanacDeviceQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -83,7 +83,7 @@ final class AlmanacInterfaceQuery
return $interfaces;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -31,7 +31,7 @@ final class AlmanacNetworkQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -71,7 +71,7 @@ final class AlmanacPropertyQuery
return $properties;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -88,7 +88,7 @@ final class AlmanacServiceQuery
return implode(' ', $joins);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -51,7 +51,7 @@ final class PhabricatorCalendarEventQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -33,7 +33,7 @@ final class PhabricatorChatLogChannelQuery
return $logs;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -55,7 +55,7 @@ final class PhabricatorChatLogQuery
return $events;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -25,7 +25,7 @@ final class PhabricatorConduitLogQuery
return $table->loadAllFromArray($data);;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->methods) {

View file

@ -49,7 +49,7 @@ final class PhabricatorConduitTokenQuery
return $table->loadAllFromArray($data);;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -31,7 +31,7 @@ final class PhabricatorConfigEntryQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -32,7 +32,7 @@ final class ConpherenceFulltextQuery
return $rows;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->threadPHIDs !== null) {

View file

@ -42,7 +42,7 @@ final class ConpherenceParticipantCountQuery
return ipull($rows, 'count', 'participantPHID');
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->participantPHIDs) {

View file

@ -79,7 +79,7 @@ final class ConpherenceParticipantQuery extends PhabricatorOffsetPagedQuery {
return $participants;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->participantPHIDs) {

View file

@ -163,7 +163,7 @@ final class ConpherenceThreadQuery
return false;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -45,7 +45,7 @@ final class PhabricatorCountdownQuery
return $countdowns;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -124,7 +124,7 @@ final class PhabricatorDaemonLogQuery
return $daemons;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -43,7 +43,7 @@ final class PhabricatorDashboardPanelQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -73,7 +73,7 @@ final class PhabricatorDashboardQuery
return $dashboards;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -124,7 +124,7 @@ final class DifferentialChangesetQuery
return $changesets;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->diffs !== null) {

View file

@ -121,7 +121,7 @@ final class DifferentialDiffQuery
return $diffs;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -90,7 +90,7 @@ final class DifferentialHunkQuery
return $hunks;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if (!$this->changesets) {

View file

@ -76,7 +76,7 @@ final class DifferentialInlineCommentQuery
return head($this->execute());
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
// Only find inline comments.

View file

@ -693,7 +693,7 @@ final class DifferentialRevisionQuery
/**
* @task internal
*/
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->pathIDs) {

View file

@ -279,7 +279,7 @@ final class DiffusionCommitQuery
return $commits;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->repositoryPHIDs !== null) {

View file

@ -56,7 +56,7 @@ final class DiffusionLintCountQuery extends PhabricatorQuery {
'SELECT %s path_prefix, COUNT(*) N FROM %T %Q',
$key,
PhabricatorRepository::TABLE_LINTMESSAGE,
$this->buildWhereClause($conn_r, $part));
$this->buildCustomWhereClause($conn_r, $part));
}
$huge_union_query = '('.implode(') UNION ALL (', $queries).')';
@ -69,7 +69,10 @@ final class DiffusionLintCountQuery extends PhabricatorQuery {
return $this->processResults($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r, $part) {
protected function buildCustomWhereClause(
AphrontDatabaseConnection $conn_r,
$part) {
$where = array();
$where[] = $part;

View file

@ -23,7 +23,7 @@ final class DiffusionPathQuery {
return ipull($results, null, 'id');
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->pathIDs) {

View file

@ -184,7 +184,7 @@ final class DiffusionSymbolQuery extends PhabricatorOffsetPagedQuery {
/**
* @task internal
*/
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if (isset($this->context)) {

View file

@ -259,7 +259,7 @@ final class DivinerAtomQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return $atoms;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -36,7 +36,7 @@ final class DivinerBookQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -31,7 +31,7 @@ final class DoorkeeperExternalObjectQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->phids) {

View file

@ -42,7 +42,7 @@ final class DrydockBlueprintQuery extends DrydockQuery {
return $blueprints;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -69,7 +69,7 @@ final class DrydockLeaseQuery extends DrydockQuery {
return $leases;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->resourceIDs) {

View file

@ -88,7 +88,7 @@ final class DrydockLogQuery extends DrydockQuery {
return $logs;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->resourceIDs) {

View file

@ -50,7 +50,7 @@ final class DrydockResourceQuery extends DrydockQuery {
return $resources;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -49,7 +49,7 @@ final class PhabricatorFeedQuery
$ref_table->getTableName());
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->filterPHIDs) {

View file

@ -86,7 +86,7 @@ final class PhabricatorFileChunkQuery
return $chunks;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->chunkHandles !== null) {

View file

@ -228,7 +228,7 @@ final class PhabricatorFileQuery
return implode(' ', $joins);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -122,7 +122,7 @@ final class PhabricatorFlagQuery
return $flags;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ownerPHIDs) {

View file

@ -68,7 +68,7 @@ final class FundBackerQuery
return $backers;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -73,7 +73,7 @@ final class FundInitiativeQuery
return $initiatives;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -75,7 +75,7 @@ final class HarbormasterBuildArtifactQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -31,7 +31,7 @@ final class HarbormasterBuildItemQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -62,7 +62,7 @@ final class HarbormasterBuildLogQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -62,7 +62,7 @@ final class HarbormasterBuildMessageQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -43,7 +43,7 @@ final class HarbormasterBuildPlanQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -136,7 +136,7 @@ final class HarbormasterBuildQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -37,7 +37,7 @@ final class HarbormasterBuildStepQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -49,7 +49,7 @@ final class HarbormasterBuildTargetQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -172,7 +172,7 @@ final class HarbormasterBuildableQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -174,7 +174,7 @@ final class HeraldRuleQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return $rules;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -85,7 +85,7 @@ final class HeraldTranscriptQuery
return $transcripts;
}
public function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -165,7 +165,7 @@ final class LegalpadDocumentQuery
}
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -86,7 +86,7 @@ final class LegalpadDocumentSignatureQuery
return $signatures;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -43,7 +43,7 @@ final class PhabricatorMailingListQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -71,7 +71,7 @@ final class PhabricatorMetaMTAApplicationEmailQuery
return $app_emails;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->addresses !== null) {

View file

@ -76,7 +76,7 @@ final class PhabricatorNotificationQuery
return $stories;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->userPHIDs !== null) {

View file

@ -38,7 +38,7 @@ final class NuanceItemQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -31,7 +31,7 @@ final class NuanceQueueQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -31,7 +31,7 @@ final class NuanceRequestorQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -44,7 +44,7 @@ final class NuanceSourceQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -59,7 +59,7 @@ final class PhabricatorOAuthClientAuthorizationQuery
return $authorizations;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->phids) {

View file

@ -37,7 +37,7 @@ final class PhabricatorOAuthServerClientQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -48,7 +48,7 @@ final class PhabricatorOwnersPackageQuery
return implode(' ', $joins);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->phids) {

View file

@ -99,7 +99,7 @@ final class PassphraseCredentialQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -96,7 +96,7 @@ final class PhabricatorPasteQuery
return $pastes;
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -55,7 +55,7 @@ final class PhabricatorPeopleLogQuery
return $table->loadAllFromArray($data);
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->actorPHIDs !== null) {

View file

@ -227,7 +227,7 @@ final class PhabricatorPeopleQuery
return $joins;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->usernames !== null) {

View file

@ -43,7 +43,7 @@ final class PhameBlogQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return $blogs;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -81,7 +81,7 @@ final class PhamePostQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return $posts;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -37,7 +37,7 @@ final class PhluxVariableQuery
return $table->loadAllFromArray($rows);
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -61,7 +61,7 @@ final class PholioImageQuery
return $images;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -82,7 +82,7 @@ final class PholioMockQuery
return $mocks;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);

View file

@ -73,7 +73,7 @@ final class PhortuneAccountQuery
return $accounts;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
$where[] = $this->buildPagingClause($conn);

View file

@ -152,7 +152,7 @@ final class PhortuneCartQuery
return $carts;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
$where[] = $this->buildPagingClause($conn);

View file

@ -94,7 +94,7 @@ final class PhortuneChargeQuery
return $charges;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
$where[] = $this->buildPagingClause($conn);

View file

@ -53,7 +53,7 @@ final class PhortuneMerchantQuery
return $merchants;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
if ($this->ids !== null) {

View file

@ -106,7 +106,7 @@ final class PhortunePaymentMethodQuery
return $methods;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
if ($this->ids !== null) {

View file

@ -59,7 +59,7 @@ final class PhortunePaymentProviderConfigQuery
return $provider_configs;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
if ($this->ids !== null) {

View file

@ -77,7 +77,7 @@ final class PhortuneProductQuery
return $page;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
if ($this->ids !== null) {

View file

@ -74,7 +74,7 @@ final class PhortunePurchaseQuery
return $purchases;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
$where[] = $this->buildPagingClause($conn);

View file

@ -142,7 +142,7 @@ final class PhortuneSubscriptionQuery
return $subscriptions;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
$where[] = $this->buildPagingClause($conn);

View file

@ -55,7 +55,7 @@ final class PhragmentFragmentQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -49,7 +49,7 @@ final class PhragmentFragmentVersionQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -55,7 +55,7 @@ final class PhragmentSnapshotChildQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -43,7 +43,7 @@ final class PhragmentSnapshotQuery
return $table->loadAllFromArray($data);
}
protected function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -73,7 +73,7 @@ final class PhrequentUserTimeQuery
return $this;
}
private function buildWhereClause(AphrontDatabaseConnection $conn) {
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
if ($this->ids !== null) {

View file

@ -36,7 +36,7 @@ final class PonderAnswerQuery
return $this;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -51,7 +51,7 @@ final class PonderQuestionQuery
return $this;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -262,7 +262,7 @@ final class PhabricatorProjectColumnPositionQuery
return $page;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -69,7 +69,7 @@ final class PhabricatorProjectColumnQuery
return $page;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -240,7 +240,7 @@ final class PhabricatorProjectQuery
return $projects;
}
private function buildWhereClause($conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->status != self::STATUS_ANY) {

View file

@ -103,7 +103,7 @@ final class ReleephBranchQuery
return $branches;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -111,7 +111,7 @@ final class ReleephProductQuery
return $products;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->active !== null) {

View file

@ -147,7 +147,7 @@ final class ReleephRequestQuery
return $requests;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids !== null) {

View file

@ -56,7 +56,7 @@ final class PhabricatorRepositoryArcanistProjectQuery
return $projects;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -63,7 +63,7 @@ final class PhabricatorRepositoryMirrorQuery
return $mirrors;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -88,7 +88,7 @@ final class PhabricatorRepositoryPushEventQuery
return $events;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

View file

@ -82,7 +82,7 @@ final class PhabricatorRepositoryPushLogQuery
return $logs;
}
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
protected function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
if ($this->ids) {

Some files were not shown because too many files have changed in this diff Show more