mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-26 13:39:08 +01:00
32 lines
627 B
PHP
32 lines
627 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorEditEngineQuery
|
||
|
extends PhabricatorCursorPagedPolicyAwareQuery {
|
||
|
|
||
|
private $engineKeys;
|
||
|
|
||
|
public function withEngineKeys(array $keys) {
|
||
|
$this->engineKeys = $keys;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
protected function loadPage() {
|
||
|
$engines = PhabricatorEditEngine::getAllEditEngines();
|
||
|
|
||
|
if ($this->engineKeys !== null) {
|
||
|
$engines = array_select_keys($engines, $this->engineKeys);
|
||
|
}
|
||
|
|
||
|
return $engines;
|
||
|
}
|
||
|
|
||
|
public function getQueryApplicationClass() {
|
||
|
return 'PhabricatorTransactionsApplication';
|
||
|
}
|
||
|
|
||
|
protected function getResultCursor($object) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
}
|