Methods summary
public
|
|
public
boolean
|
#
delProp( string $key, array $props )
Delete one or more properties under the given key
Act like: sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
Delete one or more properties under the given key
Act like: sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
Parameters
- $key
- the property parent key
- $props
- a simple array containg the properties to be deleted
Returns
boolean TRUE on success, FALSE otherwise
Api
Implementation of
|
public
|
#
deleteKey( mixed $key )
Delete a key and all its properties
Act like: /sbin/e-smith/db dbfile delete key
Delete a key and all its properties
Act like: /sbin/e-smith/db dbfile delete key
Parameters
Api
Implementation of
|
public
array
|
#
getAll( string $type = NULL )
Retrieve all keys from the database. If needed, you can filter the results by type.
Retrieve all keys from the database. If needed, you can filter the results by type.
Parameters
- $type
- (optional) type of the key
Returns
array associative array in the form "[KeyName] => array( [type] => [TypeValue], [PropName1] => [PropValue1], [PropName2] => [PropValue2], ...)
Api
Implementation of
|
public
array
|
#
getKey( string $key )
Retrieve a key from the database.
Act like : /sbin/e-smith/db dbfile get key
Retrieve a key from the database.
Act like : /sbin/e-smith/db dbfile get key
Parameters
Returns
array associative array in the form [PropName] => [PropValue]
Api
Implementation of
|
public
string
|
#
getProp( string $key, string $prop )
Read the value of the given property
Act like: /sbin/e-smith/db dbfile getprop key prop
Read the value of the given property
Act like: /sbin/e-smith/db dbfile getprop key prop
Parameters
- $key
- the parent property key
- $prop
- the name of the property
Returns
string the value of the property
Api
Implementation of
|
public
string
|
#
getType( string $key )
Return the type of a key
Act like: /sbin/e-smith/db dbfile gettype key
Return the type of a key
Act like: /sbin/e-smith/db dbfile gettype key
Parameters
Returns
string the type of the key
Api
Implementation of
|
public
boolean
|
#
setKey( string $key, string $type, string $props )
Set a database key with type and properties.
Act like: /sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
Set a database key with type and properties.
Act like: /sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
Parameters
- $key
- Key to write
- $type
- Type of the key
- $props
- Array of properties in the form [PropName] => [PropValue]
Returns
boolean TRUE on success, FALSE otherwise
Api
Implementation of
|
public
boolean
|
#
setProp( string $key, array $props )
Set one or more properties under the given key
Set one or more properties under the given key
Act like: /sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
Parameters
- $key
- the property parent key
- $props
- an associative array in the form [PropName] => [PropValue]
Returns
boolean TRUE on success, FALSE otherwise
Api
Implementation of
|
public
boolean
|
#
setType( string $key, string $type )
Set the type of a key
Act like: /sbin/e-smith/db dbfile settype key type
Set the type of a key
Act like: /sbin/e-smith/db dbfile settype key type
Parameters
- $key
- the key to change
- $type
- the new type
Returns
boolean true on success, FALSE otherwise
Api
Implementation of
|
public
SessionConsumerInterface
|
|