Differential D17883 Diff 43016 src/applications/project/controller/PhabricatorProjectProfileController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectProfileController.php
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | private function buildSubprojectList(PhabricatorProject $project) { | ||||
$id = $project->getID(); | $id = $project->getID(); | ||||
$limit = 25; | $limit = 25; | ||||
$subprojects = id(new PhabricatorProjectQuery()) | $subprojects = id(new PhabricatorProjectQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withParentProjectPHIDs(array($project->getPHID())) | ->withParentProjectPHIDs(array($project->getPHID())) | ||||
->needImages(true) | ->needImages(true) | ||||
->needMembers(true) | |||||
->needWatchers(true) | |||||
->withStatuses( | ->withStatuses( | ||||
array( | array( | ||||
PhabricatorProjectStatus::STATUS_ACTIVE, | PhabricatorProjectStatus::STATUS_ACTIVE, | ||||
)) | )) | ||||
->withIsMilestone(false) | ->withIsMilestone(false) | ||||
->setLimit($limit) | ->setLimit($limit) | ||||
->execute(); | ->execute(); | ||||
if (!$subprojects) { | if (!$subprojects) { | ||||
Show All 27 Lines |