API Documentation

Service/Amazon/S3/Stream.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Amazon_S3
version
$Id: Stream.php 22623 2010-07-18 00:43:57Z torio $
Classes
Zend_Service_Amazon_S3_Stream

Description

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.

Zend_Service_Amazon_S3_Stream

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Amazon_S3
Properties
$_writeBuffer
$_position
$_objectSize
$_objectName
$_objectBuffer
$_bucketList
$_s3
Methods
_getS3Client
_getNamePart
stream_open
stream_close
stream_read
stream_write
stream_eof
stream_tell
stream_seek
stream_flush
stream_stat
unlink
rename
mkdir
rmdir
dir_opendir
url_stat
dir_readdir
dir_rewinddir
dir_closedir

Description

Amazon S3 PHP stream wrapper

Properties

$_bucketList

array $_bucketList = 'array'

Details

$_bucketList
array
Available buckets
visibility
private
default
array
final
false
static
false

$_objectBuffer

string $_objectBuffer = 'null'

Details

$_objectBuffer
string
Current read/write buffer
visibility
private
default
null
final
false
static
false

$_objectName

string $_objectName = 'null'

Details

$_objectName
string
File name to interact with
visibility
private
default
null
final
false
static
false

$_objectSize

integer $_objectSize = '0'

Details

$_objectSize
integer
Total size of the object as returned by S3 (Content-length)
visibility
private
default
0
final
false
static
false

$_position

integer $_position = '0'

Details

$_position
integer
Current read/write position
visibility
private
default
0
final
false
static
false

$_s3

Zend_Service_Amazon_S3 $_s3 = 'null'

Details

$_s3
Zend_Service_Amazon_S3
visibility
private
default
null
final
false
static
false

$_writeBuffer

boolean $_writeBuffer = 'false'

Details

$_writeBuffer
boolean
Write the buffer on fflush()?
visibility
private
default
false
final
false
static
false

Methods

_getNamePart

_getNamePart( string $path ) : string

Extract object name from URL

Arguments
$path
string
Output
string
Details
visibility
protected
final
false
static
false

_getS3Client

_getS3Client( string $path ) : Zend_Service_Amazon_S3

Retrieve client for this stream type

Arguments
$path
string
Details
visibility
protected
final
false
static
false

dir_closedir

dir_closedir( ) : boolean

Close a directory

Output
boolean
True
Details
visibility
public
final
false
static
false

dir_opendir

dir_opendir( string $path, integer $options ) : boolean

Attempt to open a directory

Arguments
$path
string
$options
integer
Output
boolean
Details
visibility
public
final
false
static
false

dir_readdir

dir_readdir( ) : string

Return the next filename in the directory

Output
string
Details
visibility
public
final
false
static
false

dir_rewinddir

dir_rewinddir( ) : boolean

Reset the directory pointer

Output
boolean
True
Details
visibility
public
final
false
static
false

mkdir

mkdir( string $path, integer $mode, integer $options ) : boolean

Create a new directory

Arguments
$path
string
$mode
integer
$options
integer
Output
boolean
Details
visibility
public
final
false
static
false

rename

rename( string $path_from, string $path_to ) : boolean

Attempt to rename the item

Arguments
$path_from
string
$path_to
string
Output
boolean
False
Details
visibility
public
final
false
static
false

rmdir

rmdir( string $path, integer $options ) : boolean

Remove a directory

Arguments
$path
string
$options
integer
Output
boolean
Details
visibility
public
final
false
static
false

stream_close

stream_close( ) : void

Close the stream

Details
visibility
public
final
false
static
false

stream_eof

stream_eof( ) : boolean

End of the stream?

Output
boolean
Details
visibility
public
final
false
static
false

stream_flush

stream_flush( ) : boolean

Flush current cached stream data to storage

Output
boolean
Details
visibility
public
final
false
static
false

stream_open

stream_open( string $path, string $mode, integer $options, string $opened_path ) : boolean

Open the stream

Arguments
$path
string
$mode
string
$options
integer
$opened_path
string
Output
boolean
Details
visibility
public
final
false
static
false

stream_read

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().

Arguments
$count
integer
Output
string
Details
visibility
public
final
false
static
false

stream_seek

stream_seek( integer $offset, integer $whence ) : boolean

Update the read/write position of the stream

Arguments
$offset
integer
$whence
integer
Output
boolean
Details
visibility
public
final
false
static
false

stream_stat

stream_stat( ) : array

Returns data array of stream variables

Output
array
Details
visibility
public
final
false
static
false

stream_tell

stream_tell( ) : integer

What is the current read/write position of the stream

Output
integer
Details
visibility
public
final
false
static
false

stream_write

stream_write( string $data ) : integer

Write to the stream

Arguments
$data
string
Output
integer
Details
visibility
public
final
false
static
false

unlink

unlink( string $path ) : boolean

Attempt to delete the item

Arguments
$path
string
Output
boolean
Details
visibility
public
final
false
static
false

url_stat

url_stat( string $path, integer $flags ) : array

Return array of URL variables

Arguments
$path
string
$flags
integer
Output
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.