method getEmail documentation in bbn\User\Email

function($id) { $cfg = $this->class_cfg['arch']['users_emails']; $table = $this->class_cfg['tables']['users_emails']; $em = $this->db->rselect($table, $cfg, [$cfg['id'] => $id]); if ($em) { $folder = $this->getFolder($em['id_folder']); if ($folder && ($mb = $this->getMailbox($folder['id_account'])) && $mb->selectFolder($folder['uid']) && Str::isInteger($number = $mb->getMsgNo($em['msg_uid'])) ) { if ($number === 0) { $this->db->delete($table, [$cfg['id'] => $id]); return null; } $arr = $mb->getMsg($number, $id, $folder['id_account']); $arr['id_account'] = $folder['id_account']; $arr['msg_unique_id'] = $em['msg_unique_id']; return $arr; } } 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.