method init documentation in bbn\Appui\Option
function()
{
if (!$this->is_init) {
$this->cacheInit();
$t =& $this;
$this->root = $this->cacheGetSet(
function () use (&$t) {
return $t->db->selectOne($t->class_cfg['table'], $t->fields['id'], [
$t->fields['id_parent'] => null, $t->fields['code'] => 'root']);
},
'root',
'root',
60
);
if (!$this->root) {
return false;
}
if (\defined('BBN_APP_NAME')) {
$this->default = $this->cacheGetSet(
function () use (&$t) {
$res = $t->db->selectOne(
$t->class_cfg['table'],
$t->fields['id'],
[
$t->fields['id_parent'] => $this->root,
$t->fields['code'] => BBN_APP_NAME
]
);
if (!$res) {
$res = $t->root;
}
return $res;
},
BBN_APP_NAME,
BBN_APP_NAME,
60
);
}
else {
$this->default = $this->root;
}
$this->is_init = true;
}
return true;
}
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-2025
BBN Solutions