method getTheme documentation in bbn\Appui\Ide
Get theme current of the project
function()
{
$opt_theme = $this->options->fromCode(self::THEME, self::IDE_PATH, self::BBN_APPUI);
$pref_arch = $this->pref->getClassCfg();
if ($this->pref && $this->projects) {
$pref = $this->db->selectOne(
$pref_arch['tables']['user_options'],
$pref_arch['arch']['user_options']['id'],
[
$pref_arch['arch']['user_options']['id_user'] => $this->pref->getUser(),
$pref_arch['arch']['user_options']['id_option'] => $this->projects->getId()
]
);
//if there is no preference, the theme value will take it from the option
if (!empty($pref)) {
$val = $this->db->selectOne(
$pref_arch['tables']['user_options_bits'],
'cfg',
[
$pref_arch['arch']['user_options_bits']['id_user_option'] => $pref,
$pref_arch['arch']['user_options_bits']['id_option'] => $opt_theme,
]
);
$val = json_decode($val, true);
if (isset($val['theme'])) {
return $val['theme'];
}
}
}
return '';
}
Get theme current of the project 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