Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Service_Amazon_S3_Stream Class Reference

Public Member Functions

 stream_open ($path, $mode, $options, $opened_path)
 Open the stream.
 
 stream_close ()
 Close the stream.
 
 stream_read ($count)
 Read from the stream.
 
 stream_write ($data)
 Write to the stream.
 
 stream_eof ()
 End of the stream?
 
 stream_tell ()
 What is the current read/write position of the stream.
 
 stream_seek ($offset, $whence)
 Update the read/write position of the stream.
 
 stream_flush ()
 Flush current cached stream data to storage.
 
 stream_stat ()
 Returns data array of stream variables.
 
 unlink ($path)
 Attempt to delete the item.
 
 rename ($path_from, $path_to)
 Attempt to rename the item.
 
 mkdir ($path, $mode, $options)
 Create a new directory.
 
 rmdir ($path, $options)
 Remove a directory.
 
 dir_opendir ($path, $options)
 Attempt to open a directory.
 
 url_stat ($path, $flags)
 Return array of URL variables.
 
 dir_readdir ()
 Return the next filename in the directory.
 
 dir_rewinddir ()
 Reset the directory pointer.
 
 dir_closedir ()
 Close a directory.
 

Protected Member Functions

 _getS3Client ($path)
 Retrieve client for this stream type.
 
 _getNamePart ($path)
 Extract object name from URL.
 

Member Function Documentation

_getNamePart (   $path)
protected

Extract object name from URL.

Parameters
string$path
Returns
string
_getS3Client (   $path)
protected

Retrieve client for this stream type.

Parameters
string$path
Returns
Zend_Service_Amazon_S3
See Also
Zend_Service_Amazon_S3_Exception
Zend_Service_Amazon_S3_Exception
dir_closedir ( )

Close a directory.

Returns
boolean True
dir_opendir (   $path,
  $options 
)

Attempt to open a directory.

Parameters
string$path
integer$options
Returns
boolean
dir_readdir ( )

Return the next filename in the directory.

Returns
string
dir_rewinddir ( )

Reset the directory pointer.

Returns
boolean True
mkdir (   $path,
  $mode,
  $options 
)

Create a new directory.

Parameters
string$path
integer$mode
integer$options
Returns
boolean
rename (   $path_from,
  $path_to 
)

Attempt to rename the item.

Parameters
string$path_from
string$path_to
Returns
boolean False
rmdir (   $path,
  $options 
)

Remove a directory.

Parameters
string$path
integer$options
Returns
boolean
stream_close ( )

Close the stream.

Returns
void
stream_eof ( )

End of the stream?

Returns
boolean
stream_flush ( )

Flush current cached stream data to storage.

Returns
boolean
stream_open (   $path,
  $mode,
  $options,
  $opened_path 
)

Open the stream.

Parameters
string$path
string$mode
integer$options
string$opened_path
Returns
boolean
stream_read (   $count)

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

Parameters
integer$count
Returns
string
stream_seek (   $offset,
  $whence 
)

Update the read/write position of the stream.

Parameters
integer$offset
integer$whence
Returns
boolean
stream_stat ( )

Returns data array of stream variables.

Returns
array
stream_tell ( )

What is the current read/write position of the stream.

Returns
integer
stream_write (   $data)

Write to the stream.

Parameters
string$data
Returns
integer
unlink (   $path)

Attempt to delete the item.

Parameters
string$path
Returns
boolean
url_stat (   $path,
  $flags 
)

Return array of URL variables.

Parameters
string$path
integer$flags
Returns
array