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

Namespaces

namespace  class
 

Variables

 $sample_form = new XoopsThemeForm('', 'sample_form', 'action.php')
 
 $editor = !empty($_REQUEST['editor']) ? $_REQUEST['editor'] : ''
 
if(!empty($editor)) else
 
 $options ['editor'] = $editor
 
 $options ['name'] = 'required_element'
 
 $options ['value'] = empty($_REQUEST['message']) ? '' : $_REQUEST['message']
 
 $options ['rows'] = 25
 
 $options ['cols'] = 60
 
 $options ['width'] = '100%'
 
 $options ['height'] = '400px'
 

Variable Documentation

◆ $editor

$editor = !empty($_REQUEST['editor']) ? $_REQUEST['editor'] : ''

◆ $options [1/7]

$options[ 'cols'] = 60

◆ $options [2/7]

$options[ 'editor'] = $editor

◆ $options [3/7]

$options[ 'height'] = '400px'

◆ $options [4/7]

$options[ 'name'] = 'required_element'

◆ $options [5/7]

$options[ 'rows'] = 25

◆ $options [6/7]

$options[ 'value'] = empty($_REQUEST['message']) ? '' : $_REQUEST['message']

◆ $options [7/7]

$options[ 'width'] = '100%'

◆ $sample_form

$sample_form = new XoopsThemeForm('', 'sample_form', 'action.php')

Edit form with selected editor

◆ else

if (!empty( $editor)) else
Initial value:
{
if (is_object($xoopsUser)) {
$editor = @ $xoopsUser->getVar('editor');
}
$sample_form->addElement(new XoopsFormSelectEditor($sample_form, 'editor', $editor, $noHtml = false))
Definition: formselecteditor.php:28
$xoopsUser
Definition: common.php:192
$editor
Definition: sampleform.inc.php:27
$sample_form
Definition: sampleform.inc.php:24