Service/Amazon/S3/Stream.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Amazon_S3  
Version
$Id$  

\Zend_Service_Amazon_S3_Stream

Package: Zend_Service\Amazon_S3
Amazon S3 PHP stream wrapper
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivatearray $_bucketList = array()

Available buckets

Default valuearray()Details
Type
array
>VPropertyprivatestring $_objectBuffer = null

Current read/write buffer

Default valuenullDetails
Type
string
>VPropertyprivatestring $_objectName = null

File name to interact with

Default valuenullDetails
Type
string
>VPropertyprivateinteger $_objectSize = 0

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

Default value0Details
Type
integer
>VPropertyprivateinteger $_position = 0

Current read/write position

Default value0Details
Type
integer
>VPropertyprivate\Zend_Service_Amazon_S3 $_s3 = null
Default valuenullDetails
Type
\Zend_Service_Amazon_S3
>VPropertyprivateboolean $_writeBuffer = false

Write the buffer on fflush()?

Default valuefalseDetails
Type
boolean

Methods

methodprotected_getNamePart(string $path) : string

Extract object name from URL

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
string
methodprotected_getS3Client(string $path) : \Zend_Service_Amazon_S3

Retrieve client for this stream type

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
\Zend_Service_Amazon_S3
methodpublicdir_closedir() : boolean

Close a directory

Returns
TypeDescription
booleanTrue
methodpublicdir_opendir(string $path, integer $options) : boolean

Attempt to open a directory

Parameters
NameTypeDescription
$pathstring
$optionsinteger
Returns
TypeDescription
boolean
methodpublicdir_readdir() : string

Return the next filename in the directory

Returns
TypeDescription
string
methodpublicdir_rewinddir() : boolean

Reset the directory pointer

Returns
TypeDescription
booleanTrue
methodpublicmkdir(string $path, integer $mode, integer $options) : boolean

Create a new directory

Parameters
NameTypeDescription
$pathstring
$modeinteger
$optionsinteger
Returns
TypeDescription
boolean
methodpublicrename(string $path_from, string $path_to) : boolean

Attempt to rename the item

Parameters
NameTypeDescription
$path_fromstring
$path_tostring
Returns
TypeDescription
booleanFalse
methodpublicrmdir(string $path, integer $options) : boolean

Remove a directory

Parameters
NameTypeDescription
$pathstring
$optionsinteger
Returns
TypeDescription
boolean
methodpublicstream_close() : void

Close the stream

methodpublicstream_eof() : boolean

End of the stream?

Returns
TypeDescription
boolean
methodpublicstream_flush() : boolean

Flush current cached stream data to storage

Returns
TypeDescription
boolean
methodpublicstream_open(string $path, string $mode, integer $options, string $opened_path) : boolean

Open the stream

Parameters
NameTypeDescription
$pathstring
$modestring
$optionsinteger
$opened_pathstring
Returns
TypeDescription
boolean
methodpublicstream_read(integer $count) : string

Read from the stream

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
NameTypeDescription
$countinteger
Returns
TypeDescription
string
methodpublicstream_seek(integer $offset, integer $whence) : boolean

Update the read/write position of the stream

Parameters
NameTypeDescription
$offsetinteger
$whenceinteger
Returns
TypeDescription
boolean
methodpublicstream_stat() : array

Returns data array of stream variables

Returns
TypeDescription
array
methodpublicstream_tell() : integer

What is the current read/write position of the stream

Returns
TypeDescription
integer
methodpublicstream_write(string $data) : integer

Write to the stream

Parameters
NameTypeDescription
$datastring
Returns
TypeDescription
integer
methodpublicunlink(string $path) : boolean

Attempt to delete the item

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
boolean
methodpublicurl_stat(string $path, integer $flags) : array

Return array of URL variables

Parameters
NameTypeDescription
$pathstring
$flagsinteger
Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .