Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 50... Línea 50...
50
     *   of the multipart upload and that is used to resume a previous upload.
50
     *   of the multipart upload and that is used to resume a previous upload.
51
     *   When this option is provided, the `bucket`, `key`, and `part_size`
51
     *   When this option is provided, the `bucket`, `key`, and `part_size`
52
     *   options are ignored.
52
     *   options are ignored.
53
     * - source_metadata: (Aws\ResultInterface) An object that represents the
53
     * - source_metadata: (Aws\ResultInterface) An object that represents the
54
     *   result of executing a HeadObject command on the copy source.
54
     *   result of executing a HeadObject command on the copy source.
-
 
55
     * - display_progress: (boolean) Set true to track status in 1/8th increments
-
 
56
     *   for upload.
55
     *
57
     *
56
     * @param S3ClientInterface $client Client used for the upload.
58
     * @param S3ClientInterface $client Client used for the upload.
57
     * @param string|array $source Location of the data to be copied (in the
59
     * @param string|array $source Location of the data to be copied (in the
58
     *                       form /<bucket>/<key>).  If the key contains a '?'
60
     *                       form /<bucket>/<key>).  If the key contains a '?'
59
     *                       character, instead pass an array of source_key,
61
     *                       character, instead pass an array of source_key,
Línea 73... Línea 75...
73
 
75
 
74
        parent::__construct(
76
        parent::__construct(
75
            $client,
77
            $client,
76
            array_change_key_case($config) + ['source_metadata' => null]
78
            array_change_key_case($config) + ['source_metadata' => null]
-
 
79
        );
-
 
80
 
-
 
81
        if ($this->displayProgress) {
-
 
82
            $this->getState()->setProgressThresholds(
-
 
83
                $this->sourceMetadata["ContentLength"]
-
 
84
            );
77
        );
85
        }
Línea 78... Línea 86...
78
    }
86
    }
79
 
87
 
80
    /**
88
    /**
Línea 236... Línea 244...
236
    {
244
    {
237
        $sourceBuilder = ArnParser::isArn($inputSource) ? '' : '/';
245
        $sourceBuilder = ArnParser::isArn($inputSource) ? '' : '/';
238
        $sourceBuilder .= ltrim(rawurldecode($inputSource), '/');
246
        $sourceBuilder .= ltrim(rawurldecode($inputSource), '/');
239
        return $sourceBuilder;
247
        return $sourceBuilder;
240
    }
248
    }
241
 
-
 
242
}
249
}