public function PendingDataArchives() { $project = $this->getCurrentProject(); $archives = new ArrayList(); foreach ($project->DNEnvironmentList() as $env) { foreach ($env->DataArchives() as $archive) { if ($archive->isPending()) { $archives->push($archive); } } } return new PaginatedList($archives->sort("Created", "DESC"), $this->request); }