method getFolder documentation in bbn\User\Email
function(string $id, bool $force = false)
{
$types = self::getFolderTypes();
$cfg = $this->class_cfg['arch']['users_emails'];
$table = $this->class_cfg['tables']['users_emails'];
$a = $this->pref->getBit($id);
if ($a) {
return [
'id' => $a['id'],
'id_account' => $a['id_user_option'],
'text' => $a['text'],
'uid' => $a['uid'],
'id_option' => $a['id_option'],
'type' => X::getField($types, ['id' => $a['id_option']], 'code'),
'db_uid_max' => $this->db->selectOne(
$table,
'MAX(' . $this->db->csn($cfg['msg_uid'], true) . ')',
[
$cfg['id_folder'] => $a['id'],
$cfg['id_user'] => $this->user->getId()
]
),
'db_uid_min' => $this->db->selectOne(
$table,
'MIN(' . $this->db->csn($cfg['msg_uid'], true) . ')',
[
$cfg['id_folder'] => $a['id'],
$cfg['id_user'] => $this->user->getId()
]
),
'num_msg' => $this->db->count($table, [$cfg['id_folder'] => $a['id']]),
'last_uid' => $a['last_uid'] ?? null,
'last_check' => $a['last_check'] ?? null,
'hash' => $a['hash'] ?? null
];
}
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.
© 2011-2025
BBN Solutions