method createFolder documentation in bbn\User\Email
function(string $id_account, string $name, string $id_parent = NULL)
{
$mb = $this->getMailbox($id_account);
$uid_parent = "";
if ($id_parent) {
$uid_parent = $this->getFolder($id_parent)['uid'];
}
$mboxName = $id_parent ? $uid_parent . '.' . $name : $name;
if ($mb && $mb->createMbox($mboxName)) {
if ($this->createFolderDb($id_account, $name, $id_parent)) {
$this->mboxes[$id_account]['folders'] = $this->getFolders($this->mboxes[$id_account]);
return true;
}
}
return false;
}
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