<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_a0c574277fd3c2720a40f6" . "e1ba4e33f5" => base64_decode("U0VMRUNUIGlkIEZST00gYmFja3VwX3Nlcmllcw" . "=="));





class BackupCollection implements IteratorAggregate
{
    protected $items = [];
    
    
    
    
    public function Load($_82eb4a68a9db5431865bed0c5837de30 = true)
    {
        global $db;
        $_189840d11056515e52402d1412a0b6e4 = $db->query($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_a0c574277fd3c2720a40" . "f6e1ba4e33f5"]);
        while ($_b8cfc2e06d9d1fec1893ea4a054002bf = $_189840d11056515e52402d1412a0b6e4->fetchRow()) {
            $_20eedf73e25dd0dfcc2236fcba14aff4 = new BackupSingleSeries();
            try {
                $_20eedf73e25dd0dfcc2236fcba14aff4->Load($_b8cfc2e06d9d1fec1893ea4a054002bf[0]);
                $_b3332fc4b021e81f555e2958f9534536 = $_20eedf73e25dd0dfcc2236fcba14aff4->GetSeriesFolders();
                if (!empty($_b3332fc4b021e81f555e2958f9534536)) {
                    $this->items[] = $_20eedf73e25dd0dfcc2236fcba14aff4;
                } elseif (empty($_b3332fc4b021e81f555e2958f9534536) && $_82eb4a68a9db5431865bed0c5837de30) {
                    $this->items[] = $_20eedf73e25dd0dfcc2236fcba14aff4;
                }
            } catch (BackupException $_fe441aa3ef350bfb1a1a1ad8520dd530) {
                $this->items[] = $_20eedf73e25dd0dfcc2236fcba14aff4;
                $_20eedf73e25dd0dfcc2236fcba14aff4->eh->ProcessError($_fe441aa3ef350bfb1a1a1ad8520dd530->getCode(), $_fe441aa3ef350bfb1a1a1ad8520dd530->getData());
            }
        }
    }
    
    
    public function getIterator()
    {
        return new ArrayIterator($this->items);
    }
}