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 [email protected] 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 = null
<p>Current read/write buffer</p>
Default valuenullDetails
- Type
- string



string $_objectName = null
<p>File name to interact with</p>
Default valuenullDetails
- Type
- string



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



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



boolean $_writeBuffer = false
<p>Write the buffer on fflush()?</p>
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