| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Mail Box class Base class for creating and handling mail boxes. More...
 Collaboration diagram for ilMailbox:
 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 | |
| _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 261 of file class.ilMailbox.php.
References $ilDB, $ilias, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilSoapUserAdministration\hasNewMail(), and ilMainMenuGUI\renderMainMenuListEntries().
 Here is the caller graph for this function:
 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 351 of file class.ilMailbox.php.
References $ilDB, and folderNameExists().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailbox::createDefaultFolder | ( | ) | 
create all default folders public
Definition at line 302 of file class.ilMailbox.php.
| 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 606 of file class.ilMailbox.php.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) | 
add folder
| integer | id of parent folder public | 
Definition at line 430 of file class.ilMailbox.php.
References $ilDB, $query, and $row.
| ilMailbox::folderNameExists | ( | $a_folder_name | ) | 
rename folder and check if the name already exists
| string | new name of folder | 
Definition at line 409 of file class.ilMailbox.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by addFolder(), and renameFolder().
 Here is the caller graph for this function:
 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 238 of file class.ilMailbox.php.
References $actions, and getFolderData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailbox::getDraftsFolder | ( | ) | 
get Id of the inbox folder of an user public
Definition at line 164 of file class.ilMailbox.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
| ilMailbox::getFolderData | ( | $a_obj_id | ) | 
get data of a specific folder
| int | id of parent folder public | 
Definition at line 497 of file class.ilMailbox.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by getActions().
 Here is the caller graph for this function:
 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 $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
| ilMailbox::getLastInsertId | ( | ) | 
Definition at line 485 of file class.ilMailbox.php.
References $ilDB.
| ilMailbox::getParentFolderId | ( | $a_obj_id | ) | 
get id of parent folder
| integer | id of folder public | 
Definition at line 520 of file class.ilMailbox.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
| ilMailbox::getRootFolderId | ( | ) | 
get Id of the root folder of an user public
Definition at line 226 of file class.ilMailbox.php.
Referenced by getSubFolders().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailbox::getSentFolder | ( | ) | 
get Id of the sent folder of an user public
Definition at line 205 of file class.ilMailbox.php.
References $ilDB, $res, $row, and 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 541 of file class.ilMailbox.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and getRootFolderId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailbox::getTrashFolder | ( | ) | 
get Id of the trash folder of an user public
Definition at line 185 of file class.ilMailbox.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
| 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 384 of file class.ilMailbox.php.
References $ilDB, and folderNameExists().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailbox::setUserId | ( | $a_user_id | ) | 
set user_id
| integer | id of user public | 
Definition at line 593 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 642 of file class.ilMailbox.php.
References $ilDB, $user_id, and ilObjectFactory\getInstanceByObjId().
 Here is the call graph for this function:
 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(), 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.
Referenced by updateMailsOfDeletedUser().