Zend Framework  1.12
Public Member Functions | List of all members
Zend_Http_UserAgent_Storage Interface Reference

Public Member Functions

 isEmpty ()
 Returns true if and only if storage is empty.
 
 read ()
 Returns the contents of storage associated to the key parameter.
 
 write ($contents)
 Writes $contents associated to the key parameter to storage.
 
 clear ()
 Clears contents from storage.
 

Member Function Documentation

clear ( )

Clears contents from storage.

Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf clearing contents from storage is impossible
Returns
void

Implemented in Zend_Http_UserAgent_Storage_Session, and Zend_Http_UserAgent_Storage_NonPersistent.

isEmpty ( )

Returns true if and only if storage is empty.

Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf it is impossible to determine whether storage is empty
Returns
boolean

Implemented in Zend_Http_UserAgent_Storage_Session, and Zend_Http_UserAgent_Storage_NonPersistent.

read ( )

Returns the contents of storage associated to the key parameter.

Behavior is undefined when storage is empty.

Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf reading contents from storage is impossible
Returns
mixed

Implemented in Zend_Http_UserAgent_Storage_Session, and Zend_Http_UserAgent_Storage_NonPersistent.

write (   $contents)

Writes $contents associated to the key parameter to storage.

Parameters
mixed$contents
Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf writing $contents to storage is impossible
Returns
void

Implemented in Zend_Http_UserAgent_Storage_Session, and Zend_Http_UserAgent_Storage_NonPersistent.