ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Mail Box class Base class for creating and handling mail boxes. More...
Public Member Functions | |
__construct ($a_user_id=0) | |
ilMailbox constructor. More... | |
getInboxFolder () | |
getDraftsFolder () | |
getTrashFolder () | |
getSentFolder () | |
getActions ($folderId) | |
createDefaultFolder () | |
Creates all default folders for a user. More... | |
addFolder (int $parentFolderId, string $name) | |
renameFolder (int $folderId, string $name) | |
deleteFolder ($folderId) | |
getFolderData ($folderId) | |
getParentFolderId (int $folderId) | |
getSubFolders () | |
setUsrId (int $usrId) | |
getUsrId () | |
delete () | |
updateMailsOfDeletedUser (string $nameToShow) | |
Update existing mails. More... | |
isOwnedFolder (int $folderId) | |
Protected Member Functions | |
folderNameExists (string $name) | |
Protected Attributes | |
$lng | |
$db | |
$mtree | |
$usrId | |
$actions = [] | |
$defaultFolders = [] | |
$table_mail_obj_data | |
$table_tree | |
Private Member Functions | |
getRootFolderId () | |
Mail Box class Base class for creating and handling mail boxes.
Definition at line 12 of file class.ilMailbox.php.
ilMailbox::__construct | ( | $a_user_id = 0 | ) |
ilMailbox constructor.
int | $a_user_id |
Definition at line 42 of file class.ilMailbox.php.
References $DIC.
ilMailbox::addFolder | ( | int | $parentFolderId, |
string | $name | ||
) |
int | $parentFolderId | |
string | $name |
Definition at line 199 of file class.ilMailbox.php.
References $name, and folderNameExists().
ilMailbox::createDefaultFolder | ( | ) |
Creates all default folders for a user.
This method should only be called when a user object is created.
Definition at line 173 of file class.ilMailbox.php.
ilMailbox::delete | ( | ) |
Definition at line 397 of file class.ilMailbox.php.
ilMailbox::deleteFolder | ( | $folderId | ) |
int | $folderId |
ilInvalidTreeStructureException |
Definition at line 257 of file class.ilMailbox.php.
References $query.
|
protected |
$name |
Definition at line 240 of file class.ilMailbox.php.
Referenced by addFolder(), and renameFolder().
ilMailbox::getActions | ( | $folderId | ) |
int | $folderId |
Definition at line 158 of file class.ilMailbox.php.
References $actions, and getFolderData().
ilMailbox::getDraftsFolder | ( | ) |
Definition at line 101 of file class.ilMailbox.php.
References $res.
ilMailbox::getFolderData | ( | $folderId | ) |
$folderId |
Definition at line 301 of file class.ilMailbox.php.
References $res.
Referenced by getActions(), and isOwnedFolder().
ilMailbox::getInboxFolder | ( | ) |
Definition at line 85 of file class.ilMailbox.php.
References $res.
ilMailbox::getParentFolderId | ( | int | $folderId | ) |
int | $folderId |
Definition at line 321 of file class.ilMailbox.php.
References $res.
|
private |
Definition at line 149 of file class.ilMailbox.php.
ilMailbox::getSentFolder | ( | ) |
Definition at line 133 of file class.ilMailbox.php.
References $res.
ilMailbox::getSubFolders | ( | ) |
Definition at line 336 of file class.ilMailbox.php.
ilMailbox::getTrashFolder | ( | ) |
Definition at line 117 of file class.ilMailbox.php.
References $res.
ilMailbox::getUsrId | ( | ) |
Definition at line 389 of file class.ilMailbox.php.
References $usrId.
ilMailbox::isOwnedFolder | ( | int | $folderId | ) |
int | $folderId |
Definition at line 453 of file class.ilMailbox.php.
References getFolderData().
ilMailbox::renameFolder | ( | int | $folderId, |
string | $name | ||
) |
int | $folderId | |
string | $name |
Definition at line 221 of file class.ilMailbox.php.
References $name, and folderNameExists().
ilMailbox::setUsrId | ( | int | $usrId | ) |
ilMailbox::updateMailsOfDeletedUser | ( | string | $nameToShow | ) |
Update existing mails.
Set sender id to 0 and import name to login name. This is only necessary for deleted users.
string | $nameToShow |
Definition at line 440 of file class.ilMailbox.php.
|
protected |
Definition at line 27 of file class.ilMailbox.php.
Referenced by getActions().
|
protected |
Definition at line 18 of file class.ilMailbox.php.
|
protected |
Definition at line 30 of file class.ilMailbox.php.
|
protected |
Definition at line 15 of file class.ilMailbox.php.
|
protected |
Definition at line 21 of file class.ilMailbox.php.
|
protected |
Definition at line 33 of file class.ilMailbox.php.
|
protected |
Definition at line 36 of file class.ilMailbox.php.
|
protected |
Definition at line 24 of file class.ilMailbox.php.
Referenced by getUsrId(), and setUsrId().