1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Provide a default "loadPage()" implementation on "CursorPagedPolicyAwareQuery"

Summary: Ref T13682. Many subclasses of "CursorPagedPolicyAwareQuery" have the same implementation of "loadPage()", and this is a sensible default behavior.

Test Plan: Examined changes to verify that all removed methods have the same behavior.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13682

Differential Revision: https://secure.phabricator.com/D21838
This commit is contained in:
epriestley 2022-05-24 10:03:23 -07:00
parent 5493f028dc
commit 8e703c8c35
112 changed files with 20 additions and 442 deletions

View file

@ -44,10 +44,6 @@ final class AlmanacBindingQuery
return new AlmanacBinding();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $bindings) {
$service_phids = mpull($bindings, 'getServicePHID');
$device_phids = mpull($bindings, 'getDevicePHID');

View file

@ -56,10 +56,6 @@ final class AlmanacDeviceQuery
return new AlmanacDevice();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class AlmanacInterfaceQuery
return new AlmanacInterface();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $interfaces) {
$network_phids = mpull($interfaces, 'getNetworkPHID');
$device_phids = mpull($interfaces, 'getDevicePHID');

View file

@ -32,10 +32,6 @@ final class AlmanacNamespaceQuery
return new AlmanacNamespace();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class AlmanacNetworkQuery
$ngrams);
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -33,10 +33,6 @@ final class AlmanacPropertyQuery
return new AlmanacProperty();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $properties) {
$object_phids = mpull($properties, 'getObjectPHID');

View file

@ -69,10 +69,6 @@ final class AlmanacServiceQuery
return new AlmanacService();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) {
$joins = parent::buildJoinClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorAuthChallengeQuery
return new PhabricatorAuthChallenge();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -44,10 +44,6 @@ final class PhabricatorAuthContactNumberQuery
return new PhabricatorAuthContactNumber();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthFactorConfigQuery
return new PhabricatorAuthFactorConfig();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorAuthFactorProviderQuery
return new PhabricatorAuthFactorProvider();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorAuthMessageQuery
return new PhabricatorAuthMessage();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthPasswordQuery
return new PhabricatorAuthPassword();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorAuthProviderConfigQuery
return new PhabricatorAuthProviderConfig();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -47,10 +47,6 @@ final class PhabricatorAuthSSHKeyQuery
return new PhabricatorAuthSSHKey();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $keys) {
$object_phids = mpull($keys, 'getObjectPHID');

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthSessionQuery
return new PhabricatorAuthSession();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $sessions) {
$identity_phids = mpull($sessions, 'getUserPHID');

View file

@ -44,10 +44,6 @@ final class PhabricatorAuthTemporaryTokenQuery
return new PhabricatorAuthTemporaryToken();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorExternalAccountIdentifierQuery
return new PhabricatorExternalAccountIdentifier();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -66,10 +66,6 @@ final class PhabricatorExternalAccountQuery
return new PhabricatorExternalAccount();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $accounts) {
$viewer = $this->getViewer();

View file

@ -57,10 +57,6 @@ final class PhabricatorBadgesAwardQuery
return (bool)$this->badgeStatuses;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() {
return new PhabricatorBadgesAward();
}

View file

@ -34,10 +34,6 @@ final class PhabricatorBadgesQuery
$ngrams);
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function getPrimaryTableAlias() {
return 'badges';
}

View file

@ -38,10 +38,6 @@ final class PhabricatorCalendarExportQuery
return new PhabricatorCalendarExport();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorCalendarExternalInviteeQuery
return new PhabricatorCalendarExternalInvitee();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorCalendarImportLogQuery
return new PhabricatorCalendarImportLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorCalendarImportQuery
return new PhabricatorCalendarImport();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorConduitLogQuery
return new PhabricatorConduitMethodCallLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorConduitTokenQuery
return new PhabricatorConduitToken();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -28,10 +28,6 @@ final class PhabricatorCountdownQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() {
return new PhabricatorCountdown();
}

View file

@ -34,10 +34,6 @@ final class PhabricatorDashboardPanelQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() {
// TODO: If we don't do this, SearchEngine explodes when trying to
// enumerate custom fields. For now, just give the panel a default panel

View file

@ -26,10 +26,6 @@ final class PhabricatorDashboardPortalQuery
return new PhabricatorDashboardPortal();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -34,10 +34,6 @@ final class PhabricatorDashboardQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() {
return new PhabricatorDashboard();
}

View file

@ -58,10 +58,6 @@ final class DifferentialChangesetQuery
return new DifferentialChangeset();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $changesets) {
// First, attach all the diffs we already have. We can just do this
// directly without worrying about querying for them. When we don't have

View file

@ -57,10 +57,6 @@ final class DifferentialDiffQuery
return new DifferentialDiff();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $diffs) {
$revision_ids = array_filter(mpull($diffs, 'getRevisionID'));

View file

@ -34,10 +34,6 @@ final class DifferentialHunkQuery
return new DifferentialHunk();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $hunks) {
$changesets = mpull($this->changesets, null, 'getID');
foreach ($hunks as $key => $hunk) {

View file

@ -26,10 +26,6 @@ final class DifferentialViewStateQuery
return new DifferentialViewState();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -56,10 +56,6 @@ final class DiffusionCommitHintQuery
$this->commitMap = array();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -20,10 +20,6 @@ final class DoorkeeperExternalObjectQuery
return new DoorkeeperExternalObject();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -72,10 +72,6 @@ final class DrydockAuthorizationQuery extends DrydockQuery {
return new DrydockAuthorization();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $authorizations) {
$blueprint_phids = mpull($authorizations, 'getBlueprintPHID');
if ($blueprint_phids) {

View file

@ -95,10 +95,6 @@ final class DrydockBlueprintQuery extends DrydockQuery {
return 'blueprint';
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willExecute() {
if ($this->identifiers) {
$this->identifierMap = array();

View file

@ -25,10 +25,6 @@ final class DrydockCommandQuery extends DrydockQuery {
return new DrydockCommand();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $commands) {
$target_phids = mpull($commands, 'getTargetPHID');

View file

@ -57,10 +57,6 @@ final class DrydockLeaseQuery extends DrydockQuery {
return new DrydockLease();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $leases) {
$resource_phids = array_filter(mpull($leases, 'getResourcePHID'));
if ($resource_phids) {

View file

@ -37,10 +37,6 @@ final class DrydockLogQuery extends DrydockQuery {
return new DrydockLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $logs) {
$blueprint_phids = array_filter(mpull($logs, 'getBlueprintPHID'));
if ($blueprint_phids) {

View file

@ -55,10 +55,6 @@ final class DrydockRepositoryOperationQuery extends DrydockQuery {
return new DrydockRepositoryOperation();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $operations) {
$implementations = DrydockRepositoryOperationType::getAllOperationTypes();

View file

@ -49,10 +49,6 @@ final class DrydockResourceQuery extends DrydockQuery {
return new DrydockResource();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $resources) {
$blueprint_phids = mpull($resources, 'getBlueprintPHID');

View file

@ -32,10 +32,6 @@ final class PhabricatorFileAttachmentQuery
return new PhabricatorFileAttachment();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class FundInitiativeQuery
return new FundInitiative();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class HarbormasterBuildArtifactQuery
return new HarbormasterBuildArtifact();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$build_targets = array();

View file

@ -27,10 +27,6 @@ final class HarbormasterBuildLogQuery
return new HarbormasterBuildLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$build_targets = array();

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildMessageQuery
return new HarbormasterBuildMessage();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$receiver_phids = array_filter(mpull($page, 'getReceiverPHID'));
if ($receiver_phids) {

View file

@ -50,10 +50,6 @@ final class HarbormasterBuildPlanQuery
return new HarbormasterBuildPlan();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $page) {
if ($this->needBuildSteps) {
$plan_phids = mpull($page, 'getPHID');

View file

@ -56,10 +56,6 @@ final class HarbormasterBuildQuery
return new HarbormasterBuild();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$buildables = array();

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildStepQuery
return new HarbormasterBuildStep();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -69,10 +69,6 @@ final class HarbormasterBuildTargetQuery
return new HarbormasterBuildTarget();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildUnitMessageQuery
return new HarbormasterBuildUnitMessage();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -63,10 +63,6 @@ final class HarbormasterBuildableQuery
return new HarbormasterBuildable();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$buildables = array();

View file

@ -86,10 +86,6 @@ final class HeraldRuleQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new HeraldRule();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $rules) {
$rule_ids = mpull($rules, 'getID');

View file

@ -26,10 +26,6 @@ final class HeraldWebhookQuery
return new HeraldWebhook();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -29,10 +29,6 @@ final class HeraldWebhookRequestQuery
return new HeraldWebhookRequest();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function withLastRequestEpochBetween($epoch_min, $epoch_max) {
$this->lastRequestEpochMin = $epoch_min;
$this->lastRequestEpochMax = $epoch_max;

View file

@ -81,10 +81,6 @@ final class LegalpadDocumentQuery
return new LegalpadDocument();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $documents) {
if ($this->needDocumentBodies) {
$documents = $this->loadDocumentBodies($documents);

View file

@ -100,10 +100,6 @@ final class PhabricatorMacroQuery
return new PhabricatorFileImageMacro();
}
protected function loadPage() {
return $this->loadStandardPage(new PhabricatorFileImageMacro());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -20,10 +20,6 @@ final class PhabricatorMetaMTAMailPropertiesQuery
return new PhabricatorMetaMTAMailProperties();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -36,10 +36,6 @@ final class PhabricatorMetaMTAMailQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class NuanceImportCursorDataQuery
return new NuanceImportCursorData();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class NuanceItemCommandQuery
return new NuanceItemCommand();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -56,10 +56,6 @@ final class NuanceItemQuery
return new NuanceItem();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $items) {
$viewer = $this->getViewer();
$source_phids = mpull($items, 'getSourcePHID');

View file

@ -20,10 +20,6 @@ final class NuanceQueueQuery
return new NuanceQueue();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -48,10 +48,6 @@ final class NuanceSourceQuery
return 'source';
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $sources) {
$all_types = NuanceSourceDefinition::getAllDefinitions();

View file

@ -26,10 +26,6 @@ final class PhabricatorOAuthClientAuthorizationQuery
return new PhabricatorOAuthClientAuthorization();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $authorizations) {
$client_phids = mpull($authorizations, 'getClientPHID');

View file

@ -102,10 +102,6 @@ final class PhabricatorOwnersPackageQuery
$this->controlResults = array();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $packages) {
$package_ids = mpull($packages, 'getID');

View file

@ -44,10 +44,6 @@ final class PhabricatorPackagesPackageQuery
return new PhabricatorPackagesPackage();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorPackagesPublisherQuery
return new PhabricatorPackagesPublisher();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -44,10 +44,6 @@ final class PhabricatorPackagesVersionQuery
return new PhabricatorPackagesVersion();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -57,10 +57,6 @@ final class PassphraseCredentialQuery
return new PassphraseCredential();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
if ($this->needSecrets) {
$secret_ids = mpull($page, 'getSecretID');

View file

@ -84,10 +84,6 @@ final class PhabricatorPasteQuery
return new PhabricatorPaste();
}
protected function loadPage() {
return $this->loadStandardPage(new PhabricatorPaste());
}
protected function didFilterPage(array $pastes) {
if ($this->needRawContent) {
$pastes = $this->loadRawContent($pastes);

View file

@ -58,10 +58,6 @@ final class PhabricatorPeopleLogQuery
return new PhabricatorUserLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -162,10 +162,6 @@ final class PhabricatorPeopleQuery
return new PhabricatorUser();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $users) {
if ($this->needProfile) {
$user_list = mpull($users, null, 'getPHID');

View file

@ -20,10 +20,6 @@ final class PhabricatorPeopleUserEmailQuery
return new PhabricatorUserEmail();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function getPrimaryTableAlias() {
return 'email';
}

View file

@ -45,10 +45,6 @@ final class PhameBlogQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new PhameBlog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -50,10 +50,6 @@ final class PhamePostQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new PhamePost();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $posts) {
// We require blogs to do visibility checks, so load them unconditionally.
$blog_phids = mpull($posts, 'getBlogPHID');

View file

@ -44,10 +44,6 @@ final class PholioImageQuery
return new PholioImage();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhortuneAccountEmailQuery
return new PhortuneAccountEmail();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $addresses) {
$accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer())

View file

@ -46,10 +46,6 @@ final class PhortuneAccountQuery
return new PhortuneAccount();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $accounts) {
$query = id(new PhabricatorEdgeQuery())
->withSourcePHIDs(mpull($accounts, 'getPHID'))

View file

@ -32,10 +32,6 @@ final class PhortuneMerchantQuery
return new PhortuneMerchant();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $merchants) {
$query = id(new PhabricatorEdgeQuery())
->withSourcePHIDs(mpull($merchants, 'getPHID'))

View file

@ -38,10 +38,6 @@ final class PhortunePaymentMethodQuery
return new PhortunePaymentMethod();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $methods) {
$accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer())

View file

@ -51,10 +51,6 @@ final class PhortuneSubscriptionQuery
return new PhortuneSubscription();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $subscriptions) {
$accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer())

View file

@ -32,10 +32,6 @@ final class PhrictionContentQuery
return new PhrictionContent();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -62,10 +62,6 @@ final class PhrictionDocumentQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() {
return new PhrictionDocument();
}

View file

@ -50,10 +50,6 @@ final class PhabricatorPhurlURLQuery
return $this;
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -59,10 +59,6 @@ final class PonderAnswerQuery
return new PonderAnswer();
}
protected function loadPage() {
return $this->loadStandardPage(new PonderAnswer());
}
protected function willFilterPage(array $answers) {
$questions = id(new PonderQuestionQuery())
->setViewer($this->getViewer())

View file

@ -86,10 +86,6 @@ final class PonderQuestionQuery
return new PonderQuestion();
}
protected function loadPage() {
return $this->loadStandardPage(new PonderQuestion());
}
protected function willFilterPage(array $questions) {
$phids = mpull($questions, 'getPHID');

View file

@ -32,10 +32,6 @@ final class PhabricatorProjectColumnPositionQuery
return new PhabricatorProjectColumnPosition();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = array();

View file

@ -56,10 +56,6 @@ final class PhabricatorProjectColumnQuery
return new PhabricatorProjectColumn();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) {
$projects = array();

View file

@ -236,10 +236,6 @@ final class PhabricatorProjectQuery
}
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $projects) {
$ancestor_paths = array();
foreach ($projects as $project) {

View file

@ -35,10 +35,6 @@ final class PhabricatorProjectTriggerQuery
return new PhabricatorProjectTrigger();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorRepositoryGitLFSRefQuery
return new PhabricatorRepositoryGitLFSRef();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -66,10 +66,6 @@ final class PhabricatorRepositoryIdentityQuery
return 'identity';
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorRepositoryPullEventQuery
return new PhabricatorRepositoryPullEvent();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $events) {
// If a pull targets an invalid repository or fails before authenticating,
// it may not have an associated repository.

View file

@ -38,10 +38,6 @@ final class PhabricatorRepositoryPushEventQuery
return new PhabricatorRepositoryPushEvent();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $events) {
$repository_phids = mpull($events, 'getRepositoryPHID');
$repositories = id(new PhabricatorRepositoryQuery())

View file

@ -64,10 +64,6 @@ final class PhabricatorRepositoryPushLogQuery
return new PhabricatorRepositoryPushLog();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $logs) {
$event_phids = mpull($logs, 'getPushEventPHID');
$events = id(new PhabricatorObjectQuery())

View file

@ -50,10 +50,6 @@ final class PhabricatorRepositoryRefCursorQuery
return new PhabricatorRepositoryRefCursor();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $refs) {
$repository_phids = mpull($refs, 'getRepositoryPHID');

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