API - XOOPS 2.5.11 Beta 2
By monxoops.fr
viewpmsg.php File Reference

Namespaces

namespace  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')
 
 $op = Request::getWord('op', 'in', 'request')
 
if(!in_array($op, $valid_op_requests)) $start = Request::getInt('start', 0)
 
 $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( $op==='out') elseif($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', ($op === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit')
 
 $empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit')
 
 $pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true)
 

Variable Documentation

◆ $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', ($op === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit')

◆ $op

$op = Request::getWord('op', 'in', 'request')

◆ $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

if (!in_array( $op, $valid_op_requests)) $start = Request::getInt('start', 0)

◆ $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($op==='out') elseif ( $op==='save') else
Initial value:
{
$criteria = new CriteriaCompo(new Criteria('to_delete', 0))
Definition: criteria.php:181
Definition: criteria.php:290
$criteria
Definition: viewpmsg.php:58

◆ if

if(count($pm_arr) > 0) ( count( $pm_arr)  ,
 
)