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

Espaces de nommage

 kernel
 

Variables

if(!defined('XOOPS_ROOT_PATH')||!is_object($xoopsModule)) $com_modid = $xoopsModule->getVar('mid')
 
 $cform = new XoopsThemeForm(_CM_POSTCOMMENT, 'commentform', 'comment_post.php', 'post', true)
 
if(!($com_user=='' && $com_email=='')||! $xoopsUser) $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'com_icon', $com_icon)
 
 $subject_icons = XoopsLists::getSubjectsList()
 
 $editor = xoops_getModuleOption('comments_editor', 'system')
 
if(class_exists('XoopsFormEditor')) else
 
 $option_tray = new XoopsFormElementTray(_OPTIONS, '<br>')
 
 $button_tray = new XoopsFormElementTray('', '&nbsp;')
 
if(is_object($xoopsUser)) if(isset($editor) &&in_array($editor, array('textarea', 'dhtmltextarea'))) $smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $dosmiley)
 
 $xcode_checkbox = new XoopsFormCheckBox('', 'doxcode', $doxcode)
 

Documentation des variables

◆ $button_tray

$button_tray = new XoopsFormElementTray('', '&nbsp;')

◆ $cform

$cform = new XoopsThemeForm(_CM_POSTCOMMENT, 'commentform', 'comment_post.php', 'post', true)

◆ $com_modid

if (!defined( 'XOOPS_ROOT_PATH')||!is_object( $xoopsModule)) $com_modid = $xoopsModule->getVar('mid')

◆ $editor

$editor = xoops_getModuleOption('comments_editor', 'system')

◆ $icons_radio

if (!( $com_user=='' &&$com_email=='')||! $xoopsUser) $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'com_icon', $com_icon)

◆ $option_tray

$option_tray = new XoopsFormElementTray(_OPTIONS, '<br>')

◆ $smiley_checkbox

if (is_object( $xoopsUser)) if (isset( $editor) &&in_array( $editor, array( 'textarea', 'dhtmltextarea'))) $smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $dosmiley)

◆ $subject_icons

$subject_icons = XoopsLists::getSubjectsList()

◆ $xcode_checkbox

$xcode_checkbox = new XoopsFormCheckBox('', 'doxcode', $doxcode)

◆ else

if (isset( $editor) &&in_array( $editor, array( 'textarea', 'dhtmltextarea'))) else
Valeur initiale :
{
$cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE, 'com_text', $com_text, 10, 50), true)
$cform
$cform
Definition: comment_form.php:28
_CM_MESSAGE
const _CM_MESSAGE
Definition: comment.php:7
XoopsFormDhtmlTextArea
Definition: formdhtmltextarea.php:32
$com_text
$com_text
Definition: comment_edit.php:64