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

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')
 

Variable Documentation

◆ $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 = $modules_Handler->getList(new Criteria('hascomments', 1))

◆ $module_array [2/2]

◆ $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
Initial value:
= 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>')
const XOOPS_COMMENT_PENDING
Definition: comment_constants.php:29
const XOOPS_COMMENT_HIDDEN
Definition: comment_constants.php:31
const XOOPS_COMMENT_ACTIVE
Definition: comment_constants.php:30
const _CM_PENDING
Definition: comment.php:13
const _CM_HIDDEN
Definition: comment.php:14
const _CM_ACTIVE
Definition: comment.php:15