A null data driver. No data is stored and no errors are thrown.
BearFramework\App\NullDataDriver implements BearFramework\App\IDataDriver {

/* Methods */
public void append string $key string $content )
void delete string $key )
void deleteMetadata string $key string $name )
void duplicate string $sourceKey string $destinationKey )
bool exists string $key )
BearFramework\App\DataItem|null get string $key )
BearFramework\App\IDataItemStreamWrapper getDataItemStreamWrapper string $key )
BearFramework\DataList|BearFramework\App\DataItem[] getList ( [ BearFramework\DataList\Context|null $context ] )
string|null getMetadata string $key string $name )
string|null getValue string $key )
void rename string $sourceKey string $destinationKey )
void set BearFramework\App\DataItem $item )
void setMetadata string $key string $name string $value )
void setValue string $key string $value )

A data driver interface.
public void append ( string $key , string $content )
Appends data to the data item's value specified. If the data item does not exist, it will be created.
public void delete ( string $key )
Deletes the data item specified and it's metadata.
public void deleteMetadata ( string $key , string $name )
Deletes metadata for the data item key specified.
public void duplicate ( string $sourceKey , string $destinationKey )
Creates a copy of the data item specified.
public bool exists ( string $key )
Returns TRUE if the data item exists. FALSE otherwise.
public BearFramework\App\DataItem|null get ( string $key )
Returns a stored data item or null if not found.
Returns a DataItemStreamWrapper for the key specified.
Returns a list of all items in the data storage.
public string|null getMetadata ( string $key , string $name )
Retrieves metadata for the data item specified.
public string|null getValue ( string $key )
Returns the value of a stored data item or null if not found.
public void rename ( string $sourceKey , string $destinationKey )
Changes the key of the data item specified.
public void set ( BearFramework\App\DataItem $item )
Stores a data item.
public void setMetadata ( string $key , string $name , string $value )
Stores metadata for the data item specified.
public void setValue ( string $key , string $value )
Sets a new value of the item specified or creates a new item with the key and value specified.
Location: ~/src/App/NullDataDriver.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.