Database
class Database extends AbstractDriver
Properties
protected array | $config | Driver config |
from AbstractDriver |
protected DatabaseManager | $database | Database manager instance. |
Methods
__construct(array $config)
Create a new driver instance.
bool
create(array $params)
Create a new currency.
array
all()
Get all currencies.
mixed
find(string $code, int $active = 1)
Get given currency from storage.
int
delete($code)
Remove given currency from storage.
Details
at line 23
__construct(array $config)
Create a new driver instance.
in
AbstractDriver at line 35
protected mixed
config(string $key, mixed $default = null)
Get configuration value.
at line 33
bool
create(array $params)
Create a new currency.
at line 60
array
all()
Get all currencies.
at line 88
mixed
find(string $code, int $active = 1)
Get given currency from storage.
at line 104
int
update(string $code, array $attributes, DateTime $timestamp = null)
Update given currency.
at line 121
int
delete($code)
Remove given currency from storage.