method retrieveEmail documentation in bbn\User\Email

function(string $email) { $contacts = $this->class_cfg['tables']['users_contacts']; $cfg_c = $this->class_cfg['arch']['users_contacts']; $links = $this->class_cfg['tables']['users_contacts_links']; $cfg_l = $this->class_cfg['arch']['users_contacts_links']; return $this->db->selectOne( [ 'tables' => [$links], 'field' => $this->db->cfn($cfg_l['id'], $links), 'join' => [ [ 'table' => $contacts, 'on' => [ [ 'field' => $cfg_l['id_contact'], 'exp' => $this->db->cfn($cfg_c['id'], $contacts) ] ] ] ], 'where' => [ 'value' => $email, 'id_user' => $this->user->getId(), 'type' => 'email' ] ] ); }

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.