method getCreation documentation in bbn\Db\History
function(string $table, string $id)
{
if (($cfg = $this->getTableCfg($table)) && ($id_col = $this->getIdColumn($cfg['primary'], $table))) {
$this->disable();
if ($r = $this->db->rselect(
$this->getHistoryTableName(),
[
'date' => $this->getHistoryTableColumnName('tst'),
'user' => $this->getHistoryTableColumnName('usr')
], [
$this->getHistoryTableColumnName('uid') => $id,
$this->getHistoryTableColumnName('col') => $id_col,
$this->getHistoryTableColumnName('opr') => 'INSERT'
], [
$this->getHistoryTableColumnName('tst') => 'DESC'
]
)
) {
$this->enable();
return $r;
}
$this->enable();
}
return null;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2024
BBN Solutions