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 = null
Current read/write buffer
Default valuenull
Details- Type
- string



string $_objectName = null
File name to interact with
Default valuenull
Details- Type
- string



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



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



boolean $_writeBuffer = false
Write the buffer on fflush()?
Default valuefalse
Details- Type
- boolean
Methods



_getNamePart(string $path) : string
Extract object name from URL
ParametersName | Type | Description |
---|
$path | string | |
---|
Returns 


_getS3Client(string $path) : \Zend_Service_Amazon_S3
Retrieve client for this stream type
ParametersName | Type | Description |
---|
$path | string | |
---|
Returns 


dir_opendir(string $path, integer $options) : boolean
Attempt to open a directory
ParametersName | Type | Description |
---|
$path | string | |
---|
$options | integer | |
---|
Returns 


dir_rewinddir() : boolean
Reset the directory pointer
ReturnsType | Description |
---|
boolean | True |



rename(string $path_from, string $path_to) : boolean
Attempt to rename the item
ParametersName | Type | Description |
---|
$path_from | string | |
---|
$path_to | string | |
---|
ReturnsType | Description |
---|
boolean | False |



stream_seek(integer $offset, integer $whence) : boolean
Update the read/write position of the stream
ParametersName | Type | Description |
---|
$offset | integer | |
---|
$whence | integer | |
---|
Returns 


unlink(string $path) : boolean
Attempt to delete the item
ParametersName | Type | Description |
---|
$path | string | |
---|
Returns 


url_stat(string $path, integer $flags) : array
Return array of URL variables
ParametersName | Type | Description |
---|
$path | string | |
---|
$flags | integer | |
---|
Returns