method createFolderDb documentation in bbn\User\Email
function(string $id_account, string $name, string $id_parent = NULL)
{
$types = self::getFolderTypes();
$a = [
'id_option' => X::getField($types, ['code' => 'folders'], 'id'),
'text' => $name,
'uid' => $name,
'subcribed' => true
];
if ($id_parent) {
$uid_parent = $this->getFolder($id_parent)['uid'];
$a['uid'] = $uid_parent . '.' . $name;
$a['id_parent'] = $id_parent;
}
return (bool)$this->pref->addBit($id_account, $a);
}
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