Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/query/PhabricatorProjectQuery.php
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | if ($this->slugs) { | ||||
// NOTE: At least for now, we query for the normalized slugs but also | // NOTE: At least for now, we query for the normalized slugs but also | ||||
// for the slugs exactly as entered. This allows older projects with | // for the slugs exactly as entered. This allows older projects with | ||||
// slugs that are no longer valid to continue to work. | // slugs that are no longer valid to continue to work. | ||||
$this->allSlugs[$slug] = $slug; | $this->allSlugs[$slug] = $slug; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $projects) { | protected function willFilterPage(array $projects) { | ||||
$ancestor_paths = array(); | $ancestor_paths = array(); | ||||
foreach ($projects as $project) { | foreach ($projects as $project) { | ||||
foreach ($project->getAncestorProjectPaths() as $path) { | foreach ($project->getAncestorProjectPaths() as $path) { | ||||
$ancestor_paths[$path] = $path; | $ancestor_paths[$path] = $path; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 651 Lines • Show Last 20 Lines |