Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_WindowsAzure_Storage_Blob_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.
 
 url_stat ($path, $flags)
 Return array of URL variables.
 
 mkdir ($path, $mode, $options)
 Create a new directory.
 
 rmdir ($path, $options)
 Remove a directory.
 
 dir_opendir ($path, $options)
 Attempt to open a directory.
 
 dir_readdir ()
 Return the next filename in the directory.
 
 dir_rewinddir ()
 Reset the directory pointer.
 
 dir_closedir ()
 Close a directory.
 

Protected Member Functions

 _getStorageClient ($path= '')
 Retrieve storage client for this stream type.
 
 _getContainerName ($path)
 Extract container name.
 
 _getFileName ($path)
 Extract file name.
 

Protected Attributes

 $_fileName = null
 
 $_temporaryFileName = null
 
 $_temporaryFileHandle = null
 
 $_storageClient = null
 
 $_writeMode = false
 
 $_blobs = null
 

Member Function Documentation

_getContainerName (   $path)
protected

Extract container name.

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

Extract file name.

Parameters
string$path
Returns
string
_getStorageClient (   $path = '')
protected

Retrieve storage client for this stream type.

Parameters
string$path
Returns
Zend_Service_WindowsAzure_Storage_Blob
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.

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

Member Data Documentation

$_blobs = null
protected
$_fileName = null
protected
$_storageClient = null
protected
$_temporaryFileHandle = null
protected
$_temporaryFileName = null
protected
$_writeMode = false
protected