| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Mail Box class Base class for creating and handling mail boxes. More...
 Collaboration diagram for ilMailbox:
 Collaboration diagram for ilMailbox:| Public Member Functions | |
| __construct ($a_user_id=0) | |
| Constructor. | |
| 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 | |
| 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 14 of file class.ilMailbox.php.
| ilMailbox::__construct | ( | $a_user_id = 0 | ) | 
Constructor.
| integer | user_id of mailbox public | 
Definition at line 78 of file class.ilMailbox.php.
| 
 | static | 
Static method check how many unread mails are in inbox public.
Definition at line 253 of file class.ilMailbox.php.
References ilMailGlobalServices\getNumberOfNewMailsByUserId().
 Here is the call graph for this function:
 Here is the call 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 312 of file class.ilMailbox.php.
References 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 263 of file class.ilMailbox.php.
References $res.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) | 
add folder
| integer | id of parent folder public | 
Definition at line 391 of file class.ilMailbox.php.
| ilMailbox::folderNameExists | ( | $a_folder_name | ) | 
rename folder and check if the name already exists
| string | new name of folder | 
Definition at line 370 of file class.ilMailbox.php.
References $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 230 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::getFolderData | ( | $a_obj_id | ) | 
get data of a specific folder
| int | id of parent folder public | 
Definition at line 458 of file class.ilMailbox.php.
References $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::getLastInsertId | ( | ) | 
Definition at line 446 of file class.ilMailbox.php.
| ilMailbox::getParentFolderId | ( | $a_obj_id | ) | 
get id of parent folder
| integer | id of folder public | 
Definition at line 482 of file class.ilMailbox.php.
References $res, $row, and DB_FETCHMODE_OBJECT.
| ilMailbox::getRootFolderId | ( | ) | 
get Id of the root folder of an user public
Definition at line 218 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::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, $row, DB_FETCHMODE_OBJECT, and getRootFolderId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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 345 of file class.ilMailbox.php.
References 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 555 of file class.ilMailbox.php.
| ilMailbox::$actions | 
Definition at line 50 of file class.ilMailbox.php.
Referenced by getActions().
| ilMailbox::$default_folder | 
Definition at line 57 of file class.ilMailbox.php.
| ilMailbox::$ilias | 
Definition at line 21 of file class.ilMailbox.php.
Referenced by __construct().
| ilMailbox::$lng | 
Definition at line 28 of file class.ilMailbox.php.
Referenced by __construct().
| ilMailbox::$mtree | 
Definition at line 35 of file class.ilMailbox.php.
| ilMailbox::$table_mail_obj_data | 
Definition at line 64 of file class.ilMailbox.php.
| ilMailbox::$table_tree | 
Definition at line 71 of file class.ilMailbox.php.
| ilMailbox::$user_id | 
Definition at line 42 of file class.ilMailbox.php.