-
$_message_count
-
Internal variable, caches the total message count for performance reasons.
-
$_unseen_count
-
Internal variable, caches the unseen message count for performance reasons.
-
_create_mailbox
-
This funciton handles the actual mailbox creation from the 'create' handler.
-
_handler_index
-
The index handler will list all mailboxes of the current user, along with their message counts. The handler only prepares the mailbox listing, the viewer code takes the bulk of the logic here.
-
_handler_mailbox
-
Loads the mailbox referenced by $args, validats the privileges, and retrieves all mails from that mailbox.
-
_handler_mailbox_create
-
This is small creation form, driven by DM2 without any data backend.
-
_handler_mailbox_delete
-
Deletes a mailbox (currently without safety checks).
-
_handler_mailbox_edit
-
Prepares an edit form using the dm2, which is frozen unless we have update privileges.
-
_handler_mail_manage
-
Deletes a mail and relocates accordingly. This call doesn't have a show hook, as it will relocate or generate_error in all branches.
-
_handler_mail_new
-
Prepares a datamanager for entering the contents of a new mail.
-
_handler_mail_searchto
-
Simple search form to allow lookup of users to write mails to.
-
_handler_mail_sent
-
Prepares the mail for showing. This is used only if no outbox is available.
-
_handler_mail_show
-
Prepares the mail for showing.
-
_handler_welcome
-
Welcome page handler.
-
_mailbox_to_leaf
-
Little helper, transforms a mailbox into a leaf structure.
-
_on_deleted
-
The delete event deletes all messages bound to this mailbox.
-
_on_handle
-
General request initialization, which populates the topic toolbar.
-
_on_initialize
-
-
_on_initialize
-
-
_on_resolve_permalink
-
Simple lookup method which tries to map the guid to an mailbox or mail.
-
_on_watched_dba_delete
-
The delete handler will drop all mailboxes accociated with any person record that has been deleted. We don't need to check for watched classes at this time, since we have no other watches defined.
-
_prepare_topic_toolbar
-
This function adds all of the standard items (configuration and create links) to the topic toolbar.
-
_send_mail
-
Sends a mail, according to the information from the component context.
-
_send_notification_mail
-
Sends a mail to the user notifying him about a new mail in his inbox. This
-
_show_index
-
The rendering code consists of a standard init/loop/end construct.
-
_show_index_prepare_requestdata
-
Helper function used in _show_index to prepare all meta-information around the mailbox.
-
_show_mailbox
-
Renders a mailbox' contents.
-
_show_mailbox_create
-
Simple Mailbox creation form handler.
-
_show_mailbox_delete
-
Mailbox deletion stub. Not used yet.
-
_show_mailbox_edit
-
Simple Mailbox creation form handler.
-
_show_mail_new
-
Shows the send form. Nothing special.
-
_show_mail_searchto
-
Shows the search form and, if applicable, the search results.
-
_show_mail_sent
-
Shows a sent mail. This is used only if no outbox is available.
-
_show_mail_show
-
Displays an e-Mail
-
_show_welcome
-
Renders the welcome page.
-
get_body_formatted
-
Returns the HMTL-formatted body of the message. Uses the net.nehmer.markdown library.
-
get_class_magic_default_privileges
-
DBA magic defaults which assign write privileges for all USERS, so that they can freely create mails without the need to sudo of the component. Also, we deny read unconditionally, as read privileges are set during creation for the sender, and are inherited from the mailbox for the receiver.
-
get_inbox
-
Returns the Inbox of a given user, defaulting to the currently authenticated user.
-
get_leaves
-
-
get_mailbox
-
This function returns a given mailbox of a user, defaulting to the Inbox currently authenticated user. If you request the current user's mailbox without having a user authenticated, an ACCESS DENIED error is triggered.
-
get_mailbox
-
Returns an instance of the owning mailbox. A new object is created.
-
get_message_count
-
Returns the total message count within this mailbox. You do not need read access for this query, as ACL is bypassed using the count_unchecked() method of the MidCOM Query Builder. This way you will always get a fast and accurate result (especially useful for quota checks).
-
get_name_for_key
-
-
get_outbox
-
Returns the Outbox of a given user, defaulting to the currently authenticated user.
-
get_parent_guid_uncached
-
The get_parent_guid_uncached method links to the person owning the mailbox.
-
get_parent_guid_uncached
-
The get_parent_guid_uncached method links to the owning mailbox. If the mailbox cannot be resolved, the error is logged but ignored silently, to allow for error handling.
-
get_qb_list_by_user
-
This function returns a new query builder instance which allows you to list mailboxes by a given user. You may pass a midcom_core_user object, any midcom_person subclass, an ID or an GUID to this function.
-
get_qb_mails
-
This is a small helper which prepares a query builder ready to query the mails in this mailbox.
-
get_unseen_count
-
Returns the total number of unseen messages within this mailbox. Same notes as with get_message_count() applies.