method getEmail documentation in bbn\User

Returns the email of the given user or the current one.

function($usr = NULL) { if ($this->auth) { if (\is_null($usr)) { $usr = $this->getSession(); } elseif (str::isUid($usr) && ($mgr = $this->getManager())) { $usr = $mgr->getUser($usr); } if (isset($this->fields['email'], $usr[$this->fields['email']])) { return $usr[$this->fields['email']]; } } return null; }

Returns the email of the given user or the current one. 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.