method __construct documentation in bbn\Db\History
History constructor.
function(bbn\Db $db, array $cfg = [], string $user = NULL, bbn\Appui\Database $database_obj = NULL)
{
$this->db = $db;
$this->database_obj = $database_obj ?? new Database($this->db);
$this->user = $user;
// Setting up the class configuration
$this->_init_class_cfg($cfg);
$this->admin_db = $this->db->getCurrent();
$this->links = $this->db->getForeignKeys(
$this->getHistoryUidsColumnName('bbn_uid'),
$this->getHistoryUidsTableName(), $this->admin_db
);
$this->db->setTrigger(function (array $cfg) {
return $this->trigger($cfg);
});
$this->hash = $this->makeHash();
if (!isset(self::$instances[$this->hash])) {
self::$instances[$this->hash] = $this;
}
}
History constructor. 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-2023
BBN Solutions