method getCfg documentation in bbn\Appui\Notification

function(string $id_user, string $id_option = NULL) { if (bbn\Str::isUid($id_user) && ($cfg_opt_id = self::getOptionId('cfg')) && bbn\Str::isUid($cfg_opt_id) ) { // Glogal cfg if (empty($this->cfg)) { $this->cfg = $this->opt->getValue($cfg_opt_id); } $cfg = $this->cfg; // Get global user's preferences if ($cfg_pref = $this->pref->getCfgByOption($cfg_opt_id, $id_user)) { $cfg = \array_merge($cfg, $cfg_pref); } // Get users's preferences of the notification's category if (bbn\Str::isUid($id_option) && ($id_option_parent = $this->opt->getIdParent($id_option)) && bbn\Str::isUid($id_option_parent) && ($not_parent_pref = $this->pref->getCfgByOption($id_option_parent, $id_user)) ) { $cfg = \array_merge($cfg, $not_parent_pref); } // Get user's preferences of this notification if (bbn\Str::isUid($id_option) && ($not_pref = $this->pref->getCfgByOption($id_option, $id_user)) ) { $cfg = \array_merge($cfg, $not_pref); } return $cfg; } return null; }

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.