|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Mail Box class Base class for creating and handling mail boxes. More...
Collaboration diagram for ilMailbox:Public Member Functions | |
| __construct ($a_user_id=0) | |
| ilMailbox constructor. More... | |
| getInboxFolder () | |
| get Id of the inbox folder of an user More... | |
| getDraftsFolder () | |
| get Id of the inbox folder of an user More... | |
| getTrashFolder () | |
| get Id of the trash folder of an user More... | |
| getSentFolder () | |
| get Id of the sent folder of an user More... | |
| getRootFolderId () | |
| get Id of the root folder of an user More... | |
| getActions ($a_mobj_id) | |
| get all possible actions if no mobj_id is given or folder specific actions if mobj_id is given More... | |
| createDefaultFolder () | |
| Creates all default folders for a user. More... | |
| addFolder ($a_parent_id, $a_folder_name) | |
| Adds a new mail folder with the passed name under the given parent folder. More... | |
| renameFolder ($a_obj_id, $a_new_folder_name) | |
| Rename a folder and check if the name already exists. More... | |
| deleteFolder ($a_folder_id) | |
| getFolderData ($a_obj_id) | |
| Fetches the data of a specific folder. More... | |
| getParentFolderId ($a_obj_id) | |
| Get id of parent folder. More... | |
| getSubFolders ($a_folder=0, $a_folder_parent=0) | |
| Get all folders under a given folder/node id. More... | |
| setUserId ($a_user_id) | |
| delete () | |
| deletes user's mailbox and all db entries related to mailbox TODO: stefan, bitte nochmal kontrollieren, ob auch wirklich alles gel�scht wird. More... | |
| updateMailsOfDeletedUser ($nameToShow) | |
| Update existing mails. More... | |
Protected Member Functions | |
| folderNameExists ($a_folder_name) | |
| Checks whether or not the passed folder name exists in the context of the folder owner. More... | |
Protected Attributes | |
| $ilias | |
| $lng | |
| $db | |
| $mtree | |
| $user_id | |
| $actions = array() | |
| $default_folder = array() | |
| $table_mail_obj_data | |
| $table_tree | |
Mail Box class Base class for creating and handling mail boxes.
Definition at line 14 of file class.ilMailbox.php.
| ilMailbox::__construct | ( | $a_user_id = 0 | ) |
ilMailbox constructor.
| int | $a_user_id |
Definition at line 70 of file class.ilMailbox.php.
References $DIC.
| ilMailbox::addFolder | ( | $a_parent_id, | |
| $a_folder_name | |||
| ) |
Adds a new mail folder with the passed name under the given parent folder.
| integer | $a_parent_id | Id of parent folder |
| string | $a_folder_name | Name of tje folder to be created |
Definition at line 259 of file class.ilMailbox.php.
References folderNameExists().
Here is the call graph for this function:| ilMailbox::createDefaultFolder | ( | ) |
Creates all default folders for a user.
This method should only be called when a user object is created.
Definition at line 218 of file class.ilMailbox.php.
References $key.
| ilMailbox::delete | ( | ) |
deletes user's mailbox and all db entries related to mailbox TODO: stefan, bitte nochmal kontrollieren, ob auch wirklich alles gel�scht wird.
Vielleicht hab ich was �bersehen. - shofmann, 15.7.03
Definition at line 485 of file class.ilMailbox.php.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) |
| int | $a_folder_id |
| ilInvalidTreeStructureException |
Definition at line 332 of file class.ilMailbox.php.
|
protected |
Checks whether or not the passed folder name exists in the context of the folder owner.
| string | $a_folder_name | The new name of folder |
Definition at line 312 of file class.ilMailbox.php.
Referenced by addFolder(), and renameFolder().
Here is the caller graph for this function:| ilMailbox::getActions | ( | $a_mobj_id | ) |
get all possible actions if no mobj_id is given or folder specific actions if mobj_id is given
| integer | mobj_id @access public |
Definition at line 201 of file class.ilMailbox.php.
References $actions, and getFolderData().
Here is the call graph for this function:| ilMailbox::getDraftsFolder | ( | ) |
get Id of the inbox folder of an user
Definition at line 132 of file class.ilMailbox.php.
| ilMailbox::getFolderData | ( | $a_obj_id | ) |
Fetches the data of a specific folder.
| integer | $a_obj_id |
Definition at line 379 of file class.ilMailbox.php.
Referenced by getActions().
Here is the caller graph for this function:| ilMailbox::getInboxFolder | ( | ) |
get Id of the inbox folder of an user
Definition at line 113 of file class.ilMailbox.php.
| ilMailbox::getParentFolderId | ( | $a_obj_id | ) |
Get id of parent folder.
| integer | $a_obj_id |
Definition at line 403 of file class.ilMailbox.php.
| ilMailbox::getRootFolderId | ( | ) |
get Id of the root folder of an user
Definition at line 189 of file class.ilMailbox.php.
Referenced by getSubFolders().
Here is the caller graph for this function:| ilMailbox::getSentFolder | ( | ) |
get Id of the sent folder of an user
Definition at line 170 of file class.ilMailbox.php.
| ilMailbox::getSubFolders | ( | $a_folder = 0, |
|
$a_folder_parent = 0 |
|||
| ) |
Get all folders under a given folder/node id.
| int | $a_folder | |
| int | $a_folder_parent |
Definition at line 423 of file class.ilMailbox.php.
References $key, $res, $row, and getRootFolderId().
Here is the call graph for this function:| ilMailbox::getTrashFolder | ( | ) |
get Id of the trash folder of an user
Definition at line 151 of file class.ilMailbox.php.
| ilMailbox::renameFolder | ( | $a_obj_id, | |
| $a_new_folder_name | |||
| ) |
Rename a folder and check if the name already exists.
| integer | $a_obj_id | The id of the folder to be renamed |
| string | $a_new_folder_name | The new name of the folder |
Definition at line 289 of file class.ilMailbox.php.
References folderNameExists().
Here is the call graph for this function:| ilMailbox::setUserId | ( | $a_user_id | ) |
| integer | $a_user_id |
Definition at line 474 of file class.ilMailbox.php.
| ilMailbox::updateMailsOfDeletedUser | ( | $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 535 of file class.ilMailbox.php.
|
protected |
Definition at line 46 of file class.ilMailbox.php.
Referenced by getActions().
|
protected |
Definition at line 29 of file class.ilMailbox.php.
|
protected |
Definition at line 52 of file class.ilMailbox.php.
|
protected |
Definition at line 19 of file class.ilMailbox.php.
|
protected |
Definition at line 24 of file class.ilMailbox.php.
|
protected |
Definition at line 34 of file class.ilMailbox.php.
|
protected |
Definition at line 58 of file class.ilMailbox.php.
|
protected |
Definition at line 64 of file class.ilMailbox.php.
|
protected |
Definition at line 40 of file class.ilMailbox.php.