method tables documentation in bbn\Appui\Database
Returns a list of tables in the given database.
function(string $db = '', string $host = '', string $engine = 'mysql')
{
if (!bbn\Str::isUid($db)) {
if (Str::isUid($host)) {
$db = $this->dbId($db, $host);
}
else {
$db = $this->dbId($db, $host, $engine);
}
}
if (bbn\Str::isUid($db)
&& ($id_parent = $this->o->fromCode('tables', $db))
&& ($fo = array_values($this->o->codeOptions($id_parent)))
) {
$res = array_map(
function ($a) {
return [
'id' => $a['id'],
'text' => $a['text'],
'name' => $a['code']
];
},
$fo
);
return $res ?: [];
}
return null;
}
Returns a list of tables in the given database. 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