[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> functions_privmsgs.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 2180 lines (64 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 18 functions

  get_folder()
  clean_sentbox()
  check_rule()
  update_pm_counts()
  place_pm_into_folder()
  move_pm()
  update_unread_status()
  handle_mark_actions()
  delete_pm()
  phpbb_delete_user_pms()
  rebuild_header()
  write_pm_addresses()
  get_folder_status()
  submit_pm()
  pm_notification()
  message_history()
  set_user_message_limit()
  get_recipient_strings()

Functions
Functions that are not part of a class:

get_folder($user_id, $folder_id = false)   X-Ref
Get all folder


clean_sentbox($num_sentbox_messages)   X-Ref
Delete Messages From Sentbox
we are doing this here because this saves us a bunch of checks and queries


check_rule(&$rules, &$rule_row, &$message_row, $user_id)   X-Ref
Check Rule against Message Information


update_pm_counts()   X-Ref
Update user PM count


place_pm_into_folder(&$global_privmsgs_rules, $release = false)   X-Ref
Place new messages into appropriate folder


move_pm($user_id, $message_limit, $move_msg_ids, $dest_folder, $cur_folder_id)   X-Ref
Move PM from one to another folder


update_unread_status($unread, $msg_id, $user_id, $folder_id)   X-Ref
Update unread message status


handle_mark_actions($user_id, $mark_action)   X-Ref
Handle all actions possible with marked messages


delete_pm($user_id, $msg_ids, $folder_id)   X-Ref
Delete PM(s)


phpbb_delete_user_pms($user_id)   X-Ref
Delete all PM(s) for a given user and delete the ones without references

param: int        $user_id    ID of the user whose private messages we want to delete
return: boolean        False if there were no pms found, true otherwise.

rebuild_header($check_ary)   X-Ref
Rebuild message header


write_pm_addresses($check_ary, $author_id, $plaintext = false)   X-Ref
Print out/assign recipient information


get_folder_status($folder_id, $folder)   X-Ref
Get folder status


submit_pm($mode, $subject, &$data, $put_in_outbox = true)   X-Ref
Submit PM


pm_notification($mode, $author, $recipients, $subject, $message, $msg_id)   X-Ref
PM Notification


message_history($msg_id, $user_id, $message_row, $folder, $in_post_mode = false)   X-Ref
Display Message History


set_user_message_limit()   X-Ref
Set correct users max messages in PM folder.
If several group memberships define different amount of messages, the highest will be chosen.


get_recipient_strings($pm_by_id)   X-Ref
Generates an array of coloured recipient names from a list of PMs - (groups & users)

param: array    $pm_by_id    An array of rows from PRIVMSGS_TABLE, keys are the msg_ids.
return: array                2D Array: array(msg_id => array('username or group string', ...), ...)



Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1