1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00

Make DiffusionQuery extend PhabricatorQuery

Summary: Ref T2683. Provides access to `formatWhereClause()`, etc. I plan to eventually unify the various DiffusionQuery execute methods as well, which all have special names right now (`loadModifiedPaths()`, `loadWhateverBlah()`, etc).

Test Plan: Ran EverythingImplemented test. Browsed Diffusion.

Reviewers: vrana

Reviewed By: vrana

CC: aran

Maniphest Tasks: T2683

Differential Revision: https://secure.phabricator.com/D5251
This commit is contained in:
epriestley 2013-04-30 10:54:02 -07:00
parent 7ad2eae47f
commit 2ed29980db
2 changed files with 6 additions and 1 deletions

View file

@ -2224,6 +2224,7 @@ phutil_register_library_map(array(
'DiffusionPathQueryTestCase' => 'PhabricatorTestCase', 'DiffusionPathQueryTestCase' => 'PhabricatorTestCase',
'DiffusionPathValidateController' => 'DiffusionController', 'DiffusionPathValidateController' => 'DiffusionController',
'DiffusionPeopleMenuEventListener' => 'PhutilEventListener', 'DiffusionPeopleMenuEventListener' => 'PhutilEventListener',
'DiffusionQuery' => 'PhabricatorQuery',
'DiffusionRawDiffQuery' => 'DiffusionQuery', 'DiffusionRawDiffQuery' => 'DiffusionQuery',
'DiffusionRemarkupRule' => 'PhabricatorRemarkupRuleObject', 'DiffusionRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'DiffusionRepositoryController' => 'DiffusionController', 'DiffusionRepositoryController' => 'DiffusionController',

View file

@ -1,6 +1,6 @@
<?php <?php
abstract class DiffusionQuery { abstract class DiffusionQuery extends PhabricatorQuery {
private $request; private $request;
@ -36,6 +36,10 @@ abstract class DiffusionQuery {
return $this->request; return $this->request;
} }
public function execute() {
return $this->executeQuery();
}
abstract protected function executeQuery(); abstract protected function executeQuery();