JSON
JSON = 'JSON'
Format constants
Debug database storage class
$db : \Pop\Db\Adapter\AbstractAdapter
DB adapter
__construct(\Pop\Db\Adapter\AbstractAdapter $db, string $format = 'text', string $table = 'pop_debug')
Constructor
Instantiate the DB writer object
The DB table requires the following fields at a minimum:
id INT
value TEXT, VARCHAR, etc.
\Pop\Db\Adapter\AbstractAdapter | $db | |
string | $format | |
string | $table |
setFormat(string $format) : \Pop\Debug\Storage\AbstractStorage
Set the storage format
string | $format |
save(string $id, mixed $value) : \Pop\Debug\Storage\Db
Save debug data
string | $id | |
mixed | $value |
setDb(string $db) : \Pop\Debug\Storage\Db
Set the current debug db adapter.
string | $db |
getDb() : \Pop\Db\Adapter\AbstractAdapter
Get the current debug db adapter.
setTable(string $table) : \Pop\Debug\Storage\Db
Set the debug db table
string | $table |