method updateInfo documentation in bbn\User

Changes the data in the user's table.

function(array $d) { if ($this->checkSession()) { $update = []; foreach ($d as $key => $val) { if (($key !== $this->fields['id']) && ($key !== $this->fields['cfg']) && ($key !== 'auth') && ($key !== 'admin') && ($key !== 'dev') && ($key !== 'pass') ) { $update[$key] = $val; } } if (\count($update) > 0) { $r = (bool)$this->update($this->getId(), $update, true); /** @todo Why did I do this?? */ if ($r) { /** @todo WTF?? */ $this->setSession(['cfg' => false]); $this->_user_info(); } } return $r ?? false; } return false; }

Changes the data in the user's table. 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.