Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Http_UserAgent_Storage_NonPersistent Class Reference
Inheritance diagram for Zend_Http_UserAgent_Storage_NonPersistent:
Zend_Http_UserAgent_Storage

Public Member Functions

 isEmpty ()
 
 read ()
 
 write ($contents)
 
 clear ()
 

Protected Attributes

 $_data
 

Detailed Description

Definition at line 42 of file NonPersistent.php.

Member Function Documentation

◆ clear()

clear ( )

Clears contents from storage

Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf clearing contents from storage is impossible
Returns
void

Implements Zend_Http_UserAgent_Storage.

Definition at line 93 of file NonPersistent.php.

94  {
95  $this->_data = null;
96  }

◆ isEmpty()

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

Implements Zend_Http_UserAgent_Storage.

Definition at line 57 of file NonPersistent.php.

58  {
59  return empty($this->_data);
60  }

◆ read()

read ( )

Returns the contents of storage

Behavior is undefined when storage is empty.

Exceptions
Zend_Http_UserAgent_Storage_ExceptionIf reading contents from storage is impossible
Returns
mixed

Implements Zend_Http_UserAgent_Storage.

Definition at line 70 of file NonPersistent.php.

◆ write()

write (   $contents)

Writes $contents to storage

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

Implements Zend_Http_UserAgent_Storage.

Definition at line 82 of file NonPersistent.php.

83  {
84  $this->_data = $contents;
85  }
$contents
Definition: website.php:14

Field Documentation

◆ $_data

$_data
protected

Definition at line 49 of file NonPersistent.php.


The documentation for this class was generated from the following file: