Service/Amazon/S3/Stream.php
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 license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Amazon_S3
- Version
- $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_Amazon_S3_Stream
Package: Zend\Service\Amazon\S3Amazon S3 PHP stream wrapper
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



string $_objectBuffer = nullCurrent read/write buffer
Default valuenullDetails- Type
- string



string $_objectName = nullFile name to interact with
Default valuenullDetails- Type
- string



integer $_objectSize = 0Total size of the object as returned by S3 (Content-length)
Default value0Details- Type
- integer



integer $_position = 0Current read/write position
Default value0Details- Type
- integer



boolean $_writeBuffer = falseWrite the buffer on fflush()?
Default valuefalseDetails- Type
- boolean
Methods



_getNamePart(string $path) : stringExtract object name from URL
Parameters| Name | Type | Description |
|---|
| $path | string | |
|---|
Returns 


_getS3Client(string $path) : \Zend_Service_Amazon_S3Retrieve client for this stream type
Parameters| Name | Type | Description |
|---|
| $path | string | |
|---|
Returns 


dir_opendir(string $path, integer $options) : booleanAttempt to open a directory
Parameters| Name | Type | Description |
|---|
| $path | string | |
|---|
| $options | integer | |
|---|
Returns 


dir_rewinddir() : booleanReset the directory pointer
Returns| Type | Description |
|---|
| boolean | True |



rename(string $path_from, string $path_to) : booleanAttempt to rename the item
Parameters| Name | Type | Description |
|---|
| $path_from | string | |
|---|
| $path_to | string | |
|---|
Returns| Type | Description |
|---|
| boolean | False |



stream_seek(integer $offset, integer $whence) : booleanUpdate the read/write position of the stream
Parameters| Name | Type | Description |
|---|
| $offset | integer | |
|---|
| $whence | integer | |
|---|
Returns 


unlink(string $path) : booleanAttempt to delete the item
Parameters| Name | Type | Description |
|---|
| $path | string | |
|---|
Returns 


url_stat(string $path, integer $flags) : arrayReturn array of URL variables
Parameters| Name | Type | Description |
|---|
| $path | string | |
|---|
| $flags | integer | |
|---|
Returns