Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/message/index.php File Reference

Go to the source code of this file.

Namespaces

namespace  moodlecore

Variables

if(isguestuser()) if(empty($CFG->
messaging)) 
$usergroup = optional_param('usergroup', MESSAGE_VIEW_UNREAD_MESSAGES, PARAM_ALPHANUMEXT)
 $viewing = optional_param('viewing', $usergroup, PARAM_ALPHANUMEXT)
 $history = optional_param('history', MESSAGE_HISTORY_SHORT, PARAM_INT)
 $search = optional_param('search', '', PARAM_CLEAN)
 $user1id = optional_param('user1', $USER->id, PARAM_INT)
 $user2id = optional_param('user2', 0, PARAM_INT)
 $addcontact = optional_param('addcontact', 0, PARAM_INT)
 $removecontact = optional_param('removecontact', 0, PARAM_INT)
 $blockcontact = optional_param('blockcontact', 0, PARAM_INT)
 $unblockcontact = optional_param('unblockcontact', 0, PARAM_INT)
 $advancedsearch = optional_param('advanced', 0, PARAM_INT)
 $page = optional_param('page', 0, PARAM_INT)
 $url = new moodle_url('/message/index.php')
 $context = get_context_instance(CONTEXT_SYSTEM)
 $user1 = null
 $currentuser = true
 $showcontactactionlinks = true
 $user2 = null
if($user1->id!=$USER->id
&&(!empty($user2)&&$user2->id!=$USER->
id)&&!has_capability('moodle/site:readallmessages',
$context)) if($addcontact and
confirm_sesskey()) if($removecontact
and confirm_sesskey()) if($blockcontact
and confirm_sesskey()) if($unblockcontact
and confirm_sesskey()) 
$messageerror = null
 Process any contact maintenance requests there may be.
if($currentuser &&!empty($user2)&&has_capability('moodle/site:sendmessage',
$context)) 
$strmessages = get_string('messages', 'message')
 $countunread = 0
 $countunreadtotal = 0
 $viewingnewmessages = false
if($countunreadtotal==0
&&$viewing==MESSAGE_VIEW_UNREAD_MESSAGES
&&empty($user2)) 
$blockedusers = message_get_blocked_users($user1, $user2)
 $countblocked = count($blockedusers)
if(!empty($user2)) else if($viewing==MESSAGE_VIEW_SEARCH)
else if($viewing==MESSAGE_VIEW_RECENT_CONVERSATIONS)
else 
if ($viewing==MESSAGE_VIEW_RECENT_NOTIFICATIONS)

Variable Documentation

$addcontact = optional_param('addcontact', 0, PARAM_INT)

Definition at line 57 of file index.php.

$advancedsearch = optional_param('advanced', 0, PARAM_INT)

Definition at line 63 of file index.php.

$blockcontact = optional_param('blockcontact', 0, PARAM_INT)

Definition at line 59 of file index.php.

if ($countunreadtotal==0 &&$viewing==MESSAGE_VIEW_UNREAD_MESSAGES &&empty($user2)) $blockedusers = message_get_blocked_users($user1, $user2)

Definition at line 222 of file index.php.

Definition at line 93 of file index.php.

$countblocked = count($blockedusers)

Definition at line 223 of file index.php.

$countunread = 0

Definition at line 199 of file index.php.

if (!empty($user2)) $countunreadtotal = 0

Definition at line 200 of file index.php.

$currentuser = true

Definition at line 96 of file index.php.

Definition at line 44 of file index.php.

if ($user1->id!=$USER->id &&(!empty($user2)&&$user2->id!=$USER->id)&&!has_capability('moodle/site:readallmessages', $context)) if ($addcontact and confirm_sesskey()) if ($removecontact and confirm_sesskey()) if ($blockcontact and confirm_sesskey()) if ($unblockcontact and confirm_sesskey()) $messageerror = null

Process any contact maintenance requests there may be.

Definition at line 144 of file index.php.

Definition at line 66 of file index.php.

$removecontact = optional_param('removecontact', 0, PARAM_INT)

Definition at line 58 of file index.php.

Definition at line 45 of file index.php.

$showcontactactionlinks = true

Definition at line 97 of file index.php.

if ($currentuser &&!empty($user2)&&has_capability('moodle/site:sendmessage', $context)) $strmessages = get_string('messages', 'message')

Definition at line 183 of file index.php.

$unblockcontact = optional_param('unblockcontact', 0, PARAM_INT)

Definition at line 60 of file index.php.

$url = new moodle_url('/message/index.php')

Definition at line 68 of file index.php.

$user1 = null

Definition at line 95 of file index.php.

$user1id = optional_param('user1', $USER->id, PARAM_INT)

Definition at line 48 of file index.php.

$user2 = null

Definition at line 110 of file index.php.

$user2id = optional_param('user2', 0, PARAM_INT)

Definition at line 53 of file index.php.

if (isguestuser()) if (empty($CFG->messaging)) $usergroup = optional_param('usergroup', MESSAGE_VIEW_UNREAD_MESSAGES, PARAM_ALPHANUMEXT)

Definition at line 41 of file index.php.

$viewing = optional_param('viewing', $usergroup, PARAM_ALPHANUMEXT)

Definition at line 42 of file index.php.

$viewingnewmessages = false

Definition at line 203 of file index.php.

if (!empty($user2)) else if ($viewing==MESSAGE_VIEW_SEARCH) else if ($viewing==MESSAGE_VIEW_RECENT_CONVERSATIONS) else if($viewing==MESSAGE_VIEW_RECENT_NOTIFICATIONS)

Definition at line 306 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations