Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
S3Request Class Reference

S3 Request class. More...

Public Member Functions

 __construct ($verb, $bucket='', $uri='', $endpoint='s3.amazonaws.com')
 Constructor.
 
 getResponse ()
 Get the S3 response.
 
 setAmzHeader ($key, $value)
 Set x-amz-meta-* header.
 
 setHeader ($key, $value)
 Set request header.
 
 setParameter ($key, $value)
 Set request parameter.
 

Public Attributes

array $data = false
 PUT post fields.
 
string $file
 Filename or resource to write to.
 
bool $fp = false
 Use HTTP PUT?
 
object $response
 S3 request respone.
 
int $size = 0
 PUT file size.
 

Detailed Description

S3 Request class.

@externalurl http://undesigned.org.za/2007/10/22/amazon-s3-php-class

Version
0.5.0-dev

Constructor & Destructor Documentation

◆ __construct()

S3Request::__construct ( $verb,
$bucket = '',
$uri = '',
$endpoint = 's3.amazonaws.com' )

Constructor.

Parameters
string$verbVerb
string$bucketBucket name
string$uriObject URI
string$endpointAWS endpoint URI
Return values
mixed

Member Function Documentation

◆ getResponse()

S3Request::getResponse ( )

Get the S3 response.

Return values
object| false

◆ setAmzHeader()

S3Request::setAmzHeader ( $key,
$value )

Set x-amz-meta-* header.

Parameters
string$keyKey
string$valueValue
Return values
void

◆ setHeader()

S3Request::setHeader ( $key,
$value )

Set request header.

Parameters
string$keyKey
string$valueValue
Return values
void

◆ setParameter()

S3Request::setParameter ( $key,
$value )

Set request parameter.

Parameters
string$keyKey
string$valueValue
Return values
void

The documentation for this class was generated from the following file: