Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



google/appengine/ext/cloud_storage_streams/CloudStorageStreamWrapper.php

Table of Contents
Copyright 2007 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper

Package: Default
Allowed stream_context options.

"anonymous": Boolean, if set then OAuth tokens will not be generated. "acl": The ACL to apply when creating an object. "Content-Type": The content type of the object being written.

Constants

> V Constant STREAM_OPEN_FOR_INCLUDE = 128

Properties

> V Property public $context
Details
Type
n/a

Methods

method public __construct () : void

Constructs a new stream wrapper.

method public __destruct () : void

Destructs an existing stream wrapper.

method public dir_closedir () : void

Close an open directory handle.

method public dir_opendir ( $path,  $options) : void

Open a directory handle.

Parameters
Name Type Description
$path
$options
method public dir_readdir () : string

Read entry from the directory handle.

Returns
Type Description
string representing the next filename, of false if there is no next file.
method public dir_rewinddir () : bool

Reset the output returned from dir_readdir.

Returns
Type Description
bool true if the stream can be rewound, false otherwise.
method public getContentType () : void

method public getMetaData () : void

method public mkdir ( $path,  $mode,  $options) : void

Parameters
Name Type Description
$path
$mode
$options
method public rename ( $from,  $to) : TRUE

Rename a cloud storage object.

Parameters
Name Type Description
$from
$to
Returns
Type Description
TRUE if the object was renamed, FALSE otherwise
method public rmdir ( $path,  $options) : void

Parameters
Name Type Description
$path
$options
method public stream_cast () : void

Retrieve the underlaying resource of the stream, called in response to stream_select().

As GS streams have no underlying resource, we can only return false

method public stream_close () : void

All resources that were locked, or allocated, by the wrapper should be released.

No value is returned.

method public stream_eof () : TRUE

Tests for end-of-file on a file pointer.

Returns
Type Description
TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise
method public stream_flush () : TRUE

Flushes the output.

Returns
Type Description
TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored.
method public stream_metadata ( $path,  $option,  $value) : void

Parameters
Name Type Description
$path
$option
$value
method public stream_open ( $path,  $mode,  $options,  $opened_path) : void

Parameters
Name Type Description
$path
$mode
$options
$opened_path
method public stream_read ( $count) : void

Read from a stream, return string of bytes.

Parameters
Name Type Description
$count
method public stream_seek ( $offset,  $whence) : void

Parameters
Name Type Description
$offset
$whence
method public stream_set_option ( $option,  $arg1,  $arg2) : void

Parameters
Name Type Description
$option
$arg1
$arg2
method public stream_stat () : void

method public stream_tell () : void

method public stream_write ( $data) : void

Return the number of bytes written.

Parameters
Name Type Description
$data
method public unlink ( $path) : void

Deletes a file.

Called in response to unlink($filename).

Parameters
Name Type Description
$path
method public url_stat ( $path,  $flags) : void

Parameters
Name Type Description
$path
$flags
Documentation was generated by phpDocumentor 2.0.0a12 .