|
ILIAS
release_4-3 Revision
|
Mail Box class Base class for creating and handling mail boxes. More...
Collaboration diagram for ilMailbox:Public Member Functions | |
| __construct ($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 | |
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 239 of file class.ilMailbox.php.
References ilMailGlobalServices\getNumberOfNewMailsByUserId().
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 298 of file class.ilMailbox.php.
References folderNameExists().
Here is the call graph for this function:| ilMailbox::createDefaultFolder | ( | ) |
create all default folders public
Definition at line 249 of file class.ilMailbox.php.
References $res.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) |
add folder
| integer | id of parent folder public |
Definition at line 377 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 356 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:| 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 216 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 142 of file class.ilMailbox.php.
References $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 444 of file class.ilMailbox.php.
References $res, $row, and 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 122 of file class.ilMailbox.php.
References $res, $row, and DB_FETCHMODE_OBJECT.
| ilMailbox::getLastInsertId | ( | ) |
Definition at line 432 of file class.ilMailbox.php.
| ilMailbox::getParentFolderId | ( | $a_obj_id | ) |
get id of parent folder
| integer | id of folder public |
Definition at line 467 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 204 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 183 of file class.ilMailbox.php.
References $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 488 of file class.ilMailbox.php.
References $res, $row, 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 163 of file class.ilMailbox.php.
References $res, $row, and DB_FETCHMODE_OBJECT.
| 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 331 of file class.ilMailbox.php.
References 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 540 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.