Service/WindowsAzure/Storage/Blob/Stream.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
name_todo  
Package
Zend_Service_WindowsAzure_Storage  
Subpackage
Blob  
Version
$Id$  

\Zend_Service_WindowsAzure_Storage_Blob_Stream

Package: Zend_Service_WindowsAzure_Storage\Blob
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_blobs = null
List of blobs
Default valuenullDetails
Type
array
>VPropertyprotectedstring $_fileName = null
Current file name
Default valuenullDetails
Type
string
>VPropertyprotected\Zend_Service_WindowsAzure_Storage_Blob $_storageClient = null
Blob storage client
Default valuenullDetails
Type
\Zend_Service_WindowsAzure_Storage_Blob
>VPropertyprotectedresource $_temporaryFileHandle = null
Temporary file handle
Default valuenullDetails
Type
resource
>VPropertyprotectedstring $_temporaryFileName = null
Temporary file name
Default valuenullDetails
Type
string
>VPropertyprotectedboolean $_writeMode = false
Write mode?
Default valuefalseDetails
Type
boolean

Methods

methodprotected_getContainerName(string $path) : string

Extract container name

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
string
methodprotected_getFileName(string $path) : string

Extract file name

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
string
methodprotected_getStorageClient(string $path = '') : \Zend_Service_WindowsAzure_Storage_Blob

Retrieve storage client for this stream type

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
\Zend_Service_WindowsAzure_Storage_Blob
methodpublicdir_closedir() : boolean

Close a directory

Returns
TypeDescription
booleanTrue
methodpublicdir_opendir(string $path, integer $options) : boolean

Attempt to open a directory

Parameters
NameTypeDescription
$pathstring
$optionsinteger
Returns
TypeDescription
boolean
methodpublicdir_readdir() : string

Return the next filename in the directory

Returns
TypeDescription
string
methodpublicdir_rewinddir() : boolean

Reset the directory pointer

Returns
TypeDescription
booleanTrue
methodpublicmkdir(string $path, integer $mode, integer $options) : boolean

Create a new directory

Parameters
NameTypeDescription
$pathstring
$modeinteger
$optionsinteger
Returns
TypeDescription
boolean
methodpublicrename(string $path_from, string $path_to) : boolean

Attempt to rename the item

Parameters
NameTypeDescription
$path_fromstring
$path_tostring
Returns
TypeDescription
booleanFalse
methodpublicrmdir(string $path, integer $options) : boolean

Remove a directory

Parameters
NameTypeDescription
$pathstring
$optionsinteger
Returns
TypeDescription
boolean
methodpublicstream_close() : void

Close the stream

methodpublicstream_eof() : boolean

End of the stream?

Returns
TypeDescription
boolean
methodpublicstream_flush() : boolean

Flush current cached stream data to storage

Returns
TypeDescription
boolean
methodpublicstream_open(string $path, string $mode, integer $options, string $opened_path) : boolean

Open the stream

Parameters
NameTypeDescription
$pathstring
$modestring
$optionsinteger
$opened_pathstring
Returns
TypeDescription
boolean
methodpublicstream_read(integer $count) : string

Read from the stream

Parameters
NameTypeDescription
$countinteger
Returns
TypeDescription
string
methodpublicstream_seek(integer $offset, integer $whence) : boolean

Update the read/write position of the stream

Parameters
NameTypeDescription
$offsetinteger
$whenceinteger
Returns
TypeDescription
boolean
methodpublicstream_stat() : array

Returns data array of stream variables

Returns
TypeDescription
array
methodpublicstream_tell() : integer

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

Returns
TypeDescription
integer
methodpublicstream_write(string $data) : integer

Write to the stream

Parameters
NameTypeDescription
$datastring
Returns
TypeDescription
integer
methodpublicunlink(string $path) : boolean

Attempt to delete the item

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
boolean
methodpublicurl_stat(string $path, integer $flags) : array

Return array of URL variables

Parameters
NameTypeDescription
$pathstring
$flagsinteger
Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .