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-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
Returns
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
integer $_objectSize = 0
Total size of the object as returned by S3 (Content-length)
Default value
0
Details- Type
- integer
Methods
_getNamePart(string $path) : string
Extract object name from URL
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
string |
_getS3Client(string $path) : \Zend_Service_Amazon_S3
Retrieve client for this stream type
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Service_Amazon_S3 |
dir_opendir(string $path, integer $options) : boolean
Attempt to open a directory
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string | |
$options | integer |
Type | Description |
---|---|
boolean |
mkdir(string $path, integer $mode, integer $options) : boolean
Create a new directory
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string | |
$mode | integer | |
$options | integer |
Type | Description |
---|---|
boolean |
rename(string $path_from, string $path_to) : boolean
Attempt to rename the item
Parameters
Returns
Name | Type | Description |
---|---|---|
$path_from | string | |
$path_to | string |
Type | Description |
---|---|
boolean | False |
rmdir(string $path, integer $options) : boolean
Remove a directory
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string | |
$options | integer |
Type | Description |
---|---|
boolean |
stream_open(string $path, string $mode, integer $options, string $opened_path) : boolean
Open the stream
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string | |
$mode | string | |
$options | integer | |
$opened_path | string |
Type | Description |
---|---|
boolean |
stream_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().
ParametersName | Type | Description |
---|---|---|
$count | integer |
Type | Description |
---|---|
string |
stream_seek(integer $offset, integer $whence) : boolean
Update the read/write position of the stream
Parameters
Returns
Name | Type | Description |
---|---|---|
$offset | integer | |
$whence | integer |
Type | Description |
---|---|
boolean |
stream_tell() : integer
What is the current read/write position of the stream
Returns
Type | Description |
---|---|
integer |
stream_write(string $data) : integer
Write to the stream
Parameters
Returns
Name | Type | Description |
---|---|---|
$data | string |
Type | Description |
---|---|
integer |
unlink(string $path) : boolean
Attempt to delete the item
Parameters
Returns
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
boolean |