Gets an Amazon S3 bucket’s versioning status.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the bucket to use. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Get the versioning status of a bucket.
// Instantiate the class $s3 = new AmazonS3(); $bucket = 'my-bucket' . strtolower($s3->key); // Get the full status $response = $s3->get_versioning_status($bucket); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/s3.class.php | Toggle source view (9 lines) | View on GitHub