XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier viewpmsg.php

Espaces de nommage

 pm
 

Variables

if(!is_object($GLOBALS['xoopsUser'])) $xoopsConfig ['module_cache'] = 0
 
 $GLOBALS ['xoopsOption']['template_main'] = 'pm_viewpmsg.tpl'
 
 $valid_op_requests = array('out', 'save', 'in')
 
 $_REQUEST ['op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in'
 
 $start = empty($_REQUEST['start']) ? 0 : (int)$_REQUEST['start']
 
 $pm_handler = xoops_getModuleHandler('message')
 
if(isset($_POST['delete_messages']) &&(isset($_POST['msg_id'])||isset($_POST['msg_ids']))) if(isset($_POST['move_messages']) &&isset($_POST['msg_id'])) if(isset($_REQUEST['empty_messages'])) if($_REQUEST['op']==='out') elseif($_REQUEST['op']==='save') else
 
 $total_messages = $pm_handler->getCount($criteria)
 
 $pm_arr = $pm_handler->getAll($criteria, null, false, false)
 
 if (count( $pm_arr) > 0)
 
 $send_button = new XoopsFormButton('', 'send', _PM_SEND)
 
 $delete_button = new XoopsFormButton('', 'delete_messages', _PM_DELETE, 'submit')
 
 $move_button = new XoopsFormButton('', 'move_messages', ($_REQUEST['op'] === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit')
 
 $empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit')
 
 $pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true)
 

Documentation des variables

◆ $_REQUEST

$_REQUEST[ 'op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in'

◆ $delete_button

$delete_button = new XoopsFormButton('', 'delete_messages', _PM_DELETE, 'submit')

◆ $empty_button

$empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit')

◆ $GLOBALS

$GLOBALS[ 'xoopsOption'][ 'template_main'] = 'pm_viewpmsg.tpl'

◆ $move_button

$move_button = new XoopsFormButton('', 'move_messages', ($_REQUEST['op'] === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit')

◆ $pm_arr

$pm_arr = $pm_handler->getAll($criteria, null, false, false)

◆ $pm_handler

$pm_handler = xoops_getModuleHandler('message')

◆ $pmform

$pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true)

◆ $send_button

$send_button = new XoopsFormButton('', 'send', _PM_SEND)

◆ $start

$start = empty($_REQUEST['start']) ? 0 : (int)$_REQUEST['start']

◆ $total_messages

$total_messages = $pm_handler->getCount($criteria)

◆ $valid_op_requests

$valid_op_requests = array('out', 'save', 'in')

◆ $xoopsConfig

if (!is_object( $GLOBALS[ 'xoopsUser'])) $xoopsConfig[ 'module_cache'] = 0

◆ else

if (isset( $_POST[ 'delete_messages']) &&(isset( $_POST[ 'msg_id'])||isset( $_POST[ 'msg_ids']))) if (isset( $_POST[ 'move_messages']) &&isset( $_POST[ 'msg_id'])) if (isset( $_REQUEST[ 'empty_messages'])) if ( $_REQUEST[ 'op']==='out') elseif ( $_REQUEST[ 'op']==='save') else
Valeur initiale :
{
$criteria = new CriteriaCompo(new Criteria('to_delete', 0))

◆ if

if(count($pm_arr) > 0)
$criteria
$criteria
Definition: viewpmsg.php:58
Criteria
Definition: criteria.php:289
CriteriaCompo
Definition: criteria.php:180