|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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. More... | |
| getRootFolderId () | |
| get Id of the root folder of an user @access public 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) | |
Data Fields | |
| $ilias | |
| $lng | |
| $mtree | |
| $user_id | |
| $actions | |
| $default_folder | |
| $table_mail_obj_data | |
| $table_tree | |
Protected Member Functions | |
| folderNameExists ($a_folder_name) | |
| Checks whether or not the passed folder name exists in the context of the folder owner. More... | |
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 @access public |
Definition at line 78 of file class.ilMailbox.php.
| 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 291 of file class.ilMailbox.php.
References $ilDB, and 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 249 of file class.ilMailbox.php.
References $ilDB.
| ilMailbox::deleteFolder | ( | $a_folder_id | ) |
| int | $a_folder_id |
| ilInvalidTreeStructureException |
Definition at line 369 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 348 of file class.ilMailbox.php.
References $ilDB, $res, and $row.
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 230 of file class.ilMailbox.php.
References $actions, and getFolderData().
Here is the call graph for this function:| ilMailbox::getFolderData | ( | $a_obj_id | ) |
Fetches the data of a specific folder.
| integer | $a_obj_id |
Definition at line 419 of file class.ilMailbox.php.
References $ilDB, $res, and $row.
Referenced by getActions().
Here is the caller graph for this function:| ilMailbox::getParentFolderId | ( | $a_obj_id | ) |
Get id of parent folder.
| integer | $a_obj_id |
Definition at line 444 of file class.ilMailbox.php.
| ilMailbox::getRootFolderId | ( | ) |
get Id of the root folder of an user @access public
Definition at line 218 of file class.ilMailbox.php.
Referenced by getSubFolders().
Here is the caller graph for this function:| 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 465 of file class.ilMailbox.php.
References $ilDB, $res, $row, and getRootFolderId().
Here is the call graph for this function:| 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 323 of file class.ilMailbox.php.
References $ilDB, and folderNameExists().
Here is the call graph for this function:| ilMailbox::setUserId | ( | $a_user_id | ) |
| integer | $a_user_id |
Definition at line 519 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.