|
ILIAS
Release_3_10_x_branch Revision 61812
|
Mail Box class Base class for creating and handling mail boxes. More...
Collaboration diagram for ilMailbox:Public Member Functions | |
| ilMailbox ($a_user_id=0) | |
| Constructor. | |
| getInboxFolder () | |
| get Id of the inbox folder of an user public | |
| getDraftsFolder () | |
| get Id of the inbox folder of an user public | |
| getTrashFolder () | |
| get Id of the trash folder of an user public | |
| getSentFolder () | |
| get Id of the sent folder of an user public | |
| getRootFolderId () | |
| get Id of the root folder of an user public | |
| getActions ($a_mobj_id) | |
| get all possible actions if no mobj_id is given or folder specific actions if mobj_id is given | |
| createDefaultFolder () | |
| create all default folders public | |
| addFolder ($a_parent_id, $a_folder_name) | |
| add folder | |
| renameFolder ($a_obj_id, $a_new_folder_name) | |
| rename folder and check if the name already exists | |
| folderNameExists ($a_folder_name) | |
| rename folder and check if the name already exists | |
| deleteFolder ($a_folder_id) | |
| add folder | |
| getLastInsertId () | |
| getFolderData ($a_obj_id) | |
| get data of a specific folder | |
| getParentFolderId ($a_obj_id) | |
| get id of parent folder | |
| getSubFolders ($a_folder=0, $a_folder_parent=0) | |
| get all folders under given node | |
| setUserId ($a_user_id) | |
| set 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. | |
| updateMailsOfDeletedUser () | |
| Update existing mails. | |
Static Public Member Functions | |
| hasNewMail ($a_user_id) | |
| Static method check if new mail exists in inbox folder public. | |
| _countNewMails ($a_user_id) | |
| Static method check how many unread mails are in inbox public. | |
Data Fields | |
| $ilias | |
| $lng | |
| $mtree | |
| $user_id | |
| $actions | |
| $default_folder | |
| $table_mail_obj_data | |
| $table_tree | |
Mail Box class Base class for creating and handling mail boxes.
Definition at line 35 of file class.ilMailbox.php.
|
static |
Static method check how many unread mails are in inbox public.
Definition at line 282 of file class.ilMailbox.php.
References $ilias, and DB_FETCHMODE_OBJECT.
Referenced by ilMainMenuGUI\setTemplateVars().
Here is the caller graph for this function:| ilMailbox::addFolder | ( | $a_parent_id, | |
| $a_folder_name | |||
| ) |
add folder
| integer | id of parent folder |
| string | name of folder |
Definition at line 347 of file class.ilMailbox.php.
References $res, folderNameExists(), and getLastInsertId().
Here is the call graph for this function:| ilMailbox::createDefaultFolder | ( | ) |
create all default folders public
Definition at line 313 of file class.ilMailbox.php.
References $res, and getLastInsertId().
Here is the call graph for this function:| 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
public
Definition at line 562 of file class.ilMailbox.php.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) |
add folder
| integer | id of parent folder public |
Definition at line 416 of file class.ilMailbox.php.
References $res.
| ilMailbox::folderNameExists | ( | $a_folder_name | ) |
rename folder and check if the name already exists
| string | new name of folder |
Definition at line 399 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
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 public |
Definition at line 220 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 public
Definition at line 160 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
| ilMailbox::getFolderData | ( | $a_obj_id | ) |
get data of a specific folder
| int | id of parent folder public |
Definition at line 467 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
Referenced by getActions().
Here is the caller graph for this function:| ilMailbox::getInboxFolder | ( | ) |
get Id of the inbox folder of an user public
Definition at line 144 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
| ilMailbox::getLastInsertId | ( | ) |
Definition at line 455 of file class.ilMailbox.php.
Referenced by addFolder(), and createDefaultFolder().
Here is the caller graph for this function:| ilMailbox::getParentFolderId | ( | $a_obj_id | ) |
get id of parent folder
| integer | id of folder public |
Definition at line 487 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
| ilMailbox::getRootFolderId | ( | ) |
get Id of the root folder of an user public
Definition at line 208 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 public
Definition at line 192 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
| ilMailbox::getSubFolders | ( | $a_folder = 0, |
|
$a_folder_parent = 0 |
|||
| ) |
get all folders under given node
| integer | obj_id |
| integer | parent_id public |
Definition at line 503 of file class.ilMailbox.php.
References $res, DB_FETCHMODE_OBJECT, and getRootFolderId().
Here is the call graph for this function:| ilMailbox::getTrashFolder | ( | ) |
get Id of the trash folder of an user public
Definition at line 176 of file class.ilMailbox.php.
References DB_FETCHMODE_OBJECT.
|
static |
Static method check if new mail exists in inbox folder public.
Definition at line 243 of file class.ilMailbox.php.
References $ilias, and DB_FETCHMODE_OBJECT.
Referenced by ilSoapUserAdministration\hasNewMail(), and ilMainMenuGUI\setTemplateVars().
Here is the caller graph for this function:| ilMailbox::ilMailbox | ( | $a_user_id = 0 | ) |
Constructor.
| integer | user_id of mailbox public |
Definition at line 99 of file class.ilMailbox.php.
| ilMailbox::renameFolder | ( | $a_obj_id, | |
| $a_new_folder_name | |||
| ) |
rename folder and check if the name already exists
| integer | id folder |
| string | new name of folder |
Definition at line 376 of file class.ilMailbox.php.
References $res, and folderNameExists().
Here is the call graph for this function:| ilMailbox::setUserId | ( | $a_user_id | ) |
set user_id
| integer | id of user public |
Definition at line 549 of file class.ilMailbox.php.
| ilMailbox::updateMailsOfDeletedUser | ( | ) |
Update existing mails.
Set sender id to null and import name to login name. This is only necessary for deleted users.
public
Definition at line 588 of file class.ilMailbox.php.
References ilObjectFactory\getInstanceByObjId().
Here is the call graph for this function:| ilMailbox::$actions |
Definition at line 71 of file class.ilMailbox.php.
Referenced by getActions().
| ilMailbox::$default_folder |
Definition at line 78 of file class.ilMailbox.php.
| ilMailbox::$ilias |
Definition at line 42 of file class.ilMailbox.php.
Referenced by _countNewMails(), hasNewMail(), and ilMailbox().
| ilMailbox::$lng |
Definition at line 49 of file class.ilMailbox.php.
Referenced by ilMailbox().
| ilMailbox::$mtree |
Definition at line 56 of file class.ilMailbox.php.
| ilMailbox::$table_mail_obj_data |
Definition at line 85 of file class.ilMailbox.php.
| ilMailbox::$table_tree |
Definition at line 92 of file class.ilMailbox.php.
| ilMailbox::$user_id |
Definition at line 63 of file class.ilMailbox.php.