Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/query/HeraldRuleQuery.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | public function needValidateAuthors($need) { | ||||
$this->needValidateAuthors = $need; | $this->needValidateAuthors = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new HeraldRule(); | return new HeraldRule(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $rules) { | protected function willFilterPage(array $rules) { | ||||
$rule_ids = mpull($rules, 'getID'); | $rule_ids = mpull($rules, 'getID'); | ||||
// Filter out any rules that have invalid adapters, or have adapters the | // Filter out any rules that have invalid adapters, or have adapters the | ||||
// viewer isn't permitted to see or use (for example, Differential rules | // viewer isn't permitted to see or use (for example, Differential rules | ||||
// if the user can't use Differential or Differential is not installed). | // if the user can't use Differential or Differential is not installed). | ||||
$types = HeraldAdapter::getEnabledAdapterMap($this->getViewer()); | $types = HeraldAdapter::getEnabledAdapterMap($this->getViewer()); | ||||
foreach ($rules as $key => $rule) { | foreach ($rules as $key => $rule) { | ||||
▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines |