BearFramework\App\NullDataDriver

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 )
    public 
void delete string $key )
    public 
void deleteMetadata string $key string $name )
    public 
void duplicate string $sourceKey string $destinationKey )
    public 
bool exists string $key )
    public 
BearFramework\App\DataItem|null get string $key )
    public 
BearFramework\App\IDataItemStreamWrapper getDataItemStreamWrapper string $key )
    public 
BearFramework\DataList|BearFramework\App\DataItem[] getList ( [ BearFramework\DataList\Context|null $context ] )
    public 
string|null getMetadata string $key string $name )
    public 
string|null getValue string $key )
    public 
void rename string $sourceKey string $destinationKey )
    public 
void set BearFramework\App\DataItem $item )
    public 
void setMetadata string $key string $name string $value )
    public 
void setValue string $key string $value )

}
Implements
A data driver interface.
Methods
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.
Details
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.