XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsFormText Class Reference
Inheritance diagram for XoopsFormText:
XoopsFormElement XoopsFormTextDateSelect

Public Member Functions

 __construct ($caption, $name, $size, $maxlength, $value='')
 
 XoopsFormText ($caption, $name, $size, $maxlength, $value='')
 
 getSize ()
 
 getMaxlength ()
 
 getValue ()
 
 setValue ($value)
 
 render ()
 
- Public Member Functions inherited from XoopsFormElement
 __construct ()
 
 XoopsFormElement ()
 
 isContainer ()
 
 setName ($name)
 
 getName ($encode=true)
 
 setId ($id)
 
 getId ()
 
 setAccessKey ($key)
 
 getAccessKey ()
 
 getAccessString ($str)
 
 setClass ($class)
 
 getClass ()
 
 setCaption ($caption)
 
 getCaption ()
 
 setDescription ($description)
 
 getDescription ()
 
 setHidden ()
 
 isHidden ()
 
 isBreak ()
 
 setExtra ($extra, $replace=false)
 
 getExtra ()
 
 getMessageForJS ()
 

Data Fields

 $_size
 
 $_maxlength
 
 $_value
 
- Data Fields inherited from XoopsFormElement
 $_name
 
 $_caption
 
 $_accesskey = ''
 
 $_class = ''
 
 $_hidden = false
 
 $_extra = ''
 
 $_required = false
 
 $_description = ''
 
 $_id = null
 

Detailed Description

A simple text field

Definition at line 21 of file formtext.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $caption,
$name,
$size,
$maxlength,
$value = '' )

Constructor

Parameters
string$captionCaption
string$name"name" attribute
int$sizeSize
int$maxlengthMaximum length of text
string$valueInitial text

Definition at line 56 of file formtext.php.

Member Function Documentation

◆ getMaxlength()

getMaxlength ( )

Get maximum text length

Returns
int

Definition at line 84 of file formtext.php.

◆ getSize()

getSize ( )

Get size

Returns
int

Definition at line 74 of file formtext.php.

◆ getValue()

getValue ( )

Get initial content

Returns
string

Definition at line 94 of file formtext.php.

◆ render()

render ( )

Prepare HTML for output

Returns
string HTML

Reimplemented from XoopsFormElement.

Reimplemented in XoopsFormTextDateSelect.

Definition at line 114 of file formtext.php.

◆ setValue()

setValue ( $value)

Set initial text value

Parameters
string$value

Definition at line 104 of file formtext.php.

◆ XoopsFormText()

XoopsFormText ( $caption,
$name,
$size,
$maxlength,
$value = '' )

Definition at line 64 of file formtext.php.

Field Documentation

◆ $_maxlength

$_maxlength

Definition at line 37 of file formtext.php.

◆ $_size

$_size

Definition at line 29 of file formtext.php.

◆ $_value

$_value

Definition at line 45 of file formtext.php.


The documentation for this class was generated from the following file: