method setCfg documentation in bbn\User

Saves the attribute(s) values into the session config.

return self

function($attr) { if (null !== $this->cfg) { $args = \func_get_args(); if ((\count($args) === 2) && \is_string($attr)) { /** @var array $attr */ $attr = [$args[0] => $args[1]]; } if (is_array($attr)) { foreach ($attr as $key => $val) { if (\is_string($key)) { $this->cfg[$key] = $val; } } $this->setSession(['cfg' => $this->cfg]); } } return $this; }

Saves the attribute(s) values into the session config. 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.