Amazon S3 PHP stream wrapper

category Zend
package Zend_Service
subpackage Amazon_S3
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Close a directory

dir_closedir() : boolean

Returns

booleanTrue

Attempt to open a directory

dir_opendir(string $path, integer $options) : boolean

Parameters

$path

string

$options

integer

Returns

boolean

Return the next filename in the directory

dir_readdir() : string

Returns

string

Reset the directory pointer

dir_rewinddir() : boolean

Returns

booleanTrue

Create a new directory

mkdir(string $path, integer $mode, integer $options) : boolean

Parameters

$path

string

$mode

integer

$options

integer

Returns

boolean

Attempt to rename the item

rename(string $path_from, string $path_to) : boolean

Parameters

$path_from

string

$path_to

string

Returns

booleanFalse

Remove a directory

rmdir(string $path, integer $options) : boolean

Parameters

$path

string

$options

integer

Returns

boolean

Close the stream

stream_close() : void

End of the stream?

stream_eof() : boolean

Returns

boolean

Flush current cached stream data to storage

stream_flush() : boolean

Returns

boolean

Open the stream

stream_open(string $path, string $mode, integer $options, string $opened_path) : boolean

Parameters

$path

string

$mode

string

$options

integer

$opened_path

string

Returns

boolean

Read from the stream

stream_read(integer $count) : string

http://bugs.php.net/21641 - stream_read() is always passed PHP's internal read buffer size (8192) no matter what is passed as $count parameter to fread().

Parameters

$count

integer

Returns

string

Update the read/write position of the stream

stream_seek(integer $offset, integer $whence) : boolean

Parameters

$offset

integer

$whence

integer

Returns

boolean

Returns data array of stream variables

stream_stat() : array

Returns

array

What is the current read/write position of the stream

stream_tell() : integer

Returns

integer

Write to the stream

stream_write(string $data) : integer

Parameters

$data

string

Returns

integer

Return array of URL variables

url_stat(string $path, integer $flags) : array

Parameters

$path

string

$flags

integer

Returns

array

Extract object name from URL

_getNamePart(string $path) : string

Parameters

$path

string

Returns

string

Retrieve client for this stream type

_getS3Client(string $path) : \Zend_Service_Amazon_S3

Parameters

$path

string

Returns

\Zend_Service_Amazon_S3

 Properties

 

Available buckets

$_bucketList : array

Default

array()
 

Current read/write buffer

$_objectBuffer : string

Default

null
 

File name to interact with

$_objectName : string

Default

null
 

Total size of the object as returned by S3 (Content-length)

$_objectSize : integer

Default

0
 

Current read/write position

$_position : integer

Default

0
 

$_s3

$_s3 : \Zend_Service_Amazon_S3

Default

null
 

Write the buffer on fflush()?

$_writeBuffer : boolean

Default

false