src/Service/Cdn.php
public function urlServeZipped($objects, $filename = 'download.zip')
    {
        $_data    = ['where_in' => [['o.id', $objects]]];
        $_objects = $this->getObjects(null, null, $_data);

        $_ids      = [];
        $_ids_hash = [];
        foreach ($_objects as $obj) {
            $_ids[]      = $obj->id;
            $_ids_hash[] = $obj->id . $obj->bucket->id;
        }

        $_ids      = implode('-', $_ids);
        $_ids_hash = implode('-', $_ids_hash);
        $_hash     = md5(APP_PRIVATE_KEY . $_ids . $_ids_hash . $filename);

        return $this->callDriver('urlServeZipped', [$_ids, $_hash, $filename]);
    }
public function urlServeZipped($objects, $filename = 'download.zip')
    {
        $_data    = ['where_in' => [['o.id', $objects]]];
        $_objects = $this->getObjects(null, null, $_data);

        $_ids      = [];
        $_ids_hash = [];
        foreach ($_objects as $obj) {
            $_ids[]      = $obj->id;
            $_ids_hash[] = $obj->id . $obj->bucket->id;
        }

        $_ids      = implode('-', $_ids);
        $_ids_hash = implode('-', $_ids_hash);
        $_hash     = md5(APP_PRIVATE_KEY . $_ids . $_ids_hash . $filename);

        return $this->callDriver('urlServeZipped', [$_ids, $_hash, $filename]);
    }
public function urlServeZipped ( $ objects , $ filename = 'download.zip' ) { $ _data = [ 'where_in' => [ [ 'o.id' , $ objects ] ] ] ; $ _objects = $ this -> getObjects ( null , null , $ _data ) ; $ _ids = [ ] ; $ _ids_hash = [ ] ; foreach ( $ _objects as $ obj ) { $ _ids [ ] = $ obj -> id ; $ _ids_hash [ ] = $ obj -> id . $ obj -> bucket -> id ; } $ _ids = implode ( '-' , $ _ids ) ; $ _ids_hash = implode ( '-' , $ _ids_hash ) ; $ _hash = md5 ( APP_PRIVATE_KEY . $ _ids . $ _ids_hash . $ filename ) ; return $ this -> callDriver ( 'urlServeZipped' , [ $ _ids , $ _hash , $ filename ] ) ; }
Calls the driver's public urlServeZipped method

@param array  $objects  The objects to include in the zip file
@param string $filename The name to give the zip file

@return string
Calls the driver s public urlServeZipped method