DNRoot::PendingDataArchives PHP Method

PendingDataArchives() public method

public PendingDataArchives ( ) : PaginatedList
return PaginatedList The list of "pending" data archives which are waiting for a file to be delivered offline by post, and manually uploaded into the system.
    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);
    }