method getAccount documentation in bbn\User\Email
function(string $id_account, bool $force = false)
{
if ($force || !isset($this->mboxes[$id_account])) {
if ($a = $this->pref->get($id_account)) {
$this->mboxes[$id_account] = [
'id' => $a['id'],
'host' => $a['host'] ?? null,
'login' => $a['login'],
'type' => $a['type'],
'port' => $a['port'] ?? null,
'ssl' => $a['ssl'] ?? true,
'folders' => null,
'last_uid' => $a['last_uid'] ?? null,
'last_check' => $a['last_check'] ?? null,
'id_account' => $id_account
];
$this->mboxes[$id_account]['folders'] = $this->getFolders($this->mboxes[$id_account]);
if (!isset($a['stage'])) {
$a['stage'] = 1;
$this->pref->set($id_account, $a);
}
$this->mboxes[$id_account]['stage'] = $a['stage'];
}
}
return $this->mboxes[$id_account] ?? 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.
© 2011-2025
BBN Solutions