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

Variables

if(!is_object($xoopsUser)||!is_object($xoopsModule)||! $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) if(!xoops_getModuleOption('active_comments', 'system')) $op = Request::getString('op', 'default')
 
 $GLOBALS ['xoopsOption']['template_main'] = 'system_comments.tpl'
 
 $limit_array = array(20, 50, 100)
 
 $status_array = array(XOOPS_COMMENT_PENDING => _CM_PENDING, XOOPS_COMMENT_ACTIVE => _CM_ACTIVE, XOOPS_COMMENT_HIDDEN => _CM_HIDDEN)
 
 $status_array2
 
 $start = 0
 
 $status_array [0] = _AM_SYSTEM_COMMENTS_FORM_ALL_STATUS
 
 $comments = array()
 
 $status = (!isset($_REQUEST['status']) || !array_key_exists((int)$_REQUEST['status'], $status_array)) ? 0 : (int)$_REQUEST['status']
 
 $module = !isset($_REQUEST['module']) ? 0 : (int)$_REQUEST['module']
 
 $modules_Handler = xoops_getHandler('module')
 
 $module_array = $modules_Handler->getList(new Criteria('hascomments', 1))
 
 $module_array [0] = _AM_SYSTEM_COMMENTS_FORM_ALL_MODS
 
 $comment_handler = xoops_getHandler('comment')
 

Documentation des variables

◆ $comment_handler

$comment_handler = xoops_getHandler('comment')

◆ $comments

$comments = array()

◆ $GLOBALS

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

◆ $limit_array

$limit_array = array(20, 50, 100)

◆ $module

$module = !isset($_REQUEST['module']) ? 0 : (int)$_REQUEST['module']

◆ $module_array [1/2]

◆ $module_array [2/2]

$module_array = $modules_Handler->getList(new Criteria('hascomments', 1))

◆ $modules_Handler

$modules_Handler = xoops_getHandler('module')

◆ $op

if (!is_object( $xoopsUser)||!is_object( $xoopsModule)||! $xoopsUser->isAdmin( $xoopsModule->getVar( 'mid'))) if (!xoops_getModuleOption( 'active_comments', 'system')) $op = Request::getString('op', 'default')

◆ $start

$start = 0

◆ $status

$status = (!isset($_REQUEST['status']) || !array_key_exists((int)$_REQUEST['status'], $status_array)) ? 0 : (int)$_REQUEST['status']

◆ $status_array [1/2]

◆ $status_array [2/2]

◆ $status_array2

$status_array2
Valeur initiale :
= array(
XOOPS_COMMENT_PENDING => '<span style="text-decoration: none; font-weight: bold; color: #008000;">' . _CM_PENDING . '</span>',
XOOPS_COMMENT_ACTIVE => '<span style="text-decoration: none; font-weight: bold; color: #ff0000;">' . _CM_ACTIVE . '</span>',
XOOPS_COMMENT_HIDDEN => '<span style="text-decoration: none; font-weight: bold; color: #0000ff;">' . _CM_HIDDEN . '</span>')
_CM_ACTIVE
const _CM_ACTIVE
Definition: comment.php:15
XOOPS_COMMENT_PENDING
const XOOPS_COMMENT_PENDING
Definition: comment_constants.php:29
_CM_HIDDEN
const _CM_HIDDEN
Definition: comment.php:14
_CM_PENDING
const _CM_PENDING
Definition: comment.php:13
XOOPS_COMMENT_HIDDEN
const XOOPS_COMMENT_HIDDEN
Definition: comment_constants.php:31
XOOPS_COMMENT_ACTIVE
const XOOPS_COMMENT_ACTIVE
Definition: comment_constants.php:30