method tableId documentation in bbn\Appui\Database

Returns the ID of a table from the options table.

function(string $table, string $db = '', string $host = '', string $engine = 'mysql') { if (!bbn\Str::isUid($db)) { if (Str::isUid($host)) { if (!($parent = $this->o->parent($this->o->getIdParent($host)))) { throw new \Exception(X::_("Impossible to find the host engine")); } $engine = $parent['code']; $db = $this->dbId($db, $host, $engine); } else { $db = $this->dbId($db, $host, $engine); } } if (bbn\Str::isUid($db) && ($id_parent = $this->o->fromCode('tables', $db)) && ($id = $this->o->fromCode($table, $id_parent)) ) { return $id; } return null; }

Returns the ID of a table from the options table. 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.