Class cHTMLTextbox
cHTMLTextbox class represents a textbox.
-
cHTML
-
cHTMLFormElement
-
cHTMLTextbox
Methods summary
public
|
#
__construct( string $name, string $initvalue = '', integer $width = '', integer $maxlength = '', string $id = '', string $disabled = false, string $tabindex = NULL, string $accesskey = '', string $class = '' )
Constructor to create an instance of this class.
Constructor to create an instance of this class.
Creates an HTML text box.
If no additional parameters are specified, the default width is 20 units.
Parameters
- $name
string $name Name of the element
- $initvalue
string $initvalue [optional] Initial value of the box
- $width
integer $width [optional] width of the text box
- $maxlength
integer $maxlength [optional] maximum input length of the box
- $id
string $id [optional] ID of the element
- $disabled
string $disabled [optional] Item disabled flag (non-empty to set disabled)
- $tabindex
string $tabindex [optional] Tab index for form elements
- $accesskey
string $accesskey [optional] Key to access the field
- $class
string $class [optional] the class of this element
Overrides
|
public
cHTMLTextbox
|
#
setWidth( integer $width )
Sets the width of the text box.
Sets the width of the text box.
Parameters
- $width
integer $width width of the text box
Returns
|
public
cHTMLTextbox
|
#
setMaxLength( integer $maxlen )
Sets the maximum input length of the text box.
Sets the maximum input length of the text box.
Parameters
- $maxlen
integer $maxlen maximum input length
Returns
|
public
cHTMLTextbox
|
#
setValue( string $value )
Sets the initial value of the text box.
Sets the initial value of the text box.
Parameters
- $value
string $value Initial value
Returns
|
Methods inherited from cHTML
__toString(),
_appendContent(),
_getAttrString(),
_parseAttributes(),
_setContent(),
addRequiredScript(),
advanceID(),
appendStyleDefinition(),
appendStyleDefinitions(),
attachEventDefinition(),
display(),
fillCloseSkeleton(),
fillSkeleton(),
getAttribute(),
getAttributes(),
getID(),
removeAttribute(),
render(),
setAlt(),
setAttribute(),
setAttributes(),
setClass(),
setEvent(),
setGenerateXHTML(),
setID(),
setStyle(),
setTag(),
toHtml(),
unsetEvent(),
updateAttribute(),
updateAttributes()
|
Properties inherited from cHTML
$_attributes,
$_content,
$_contentlessTag,
$_eventDefinitions,
$_generateXHTML,
$_idCounter,
$_requiredScripts,
$_skeletonClose,
$_skeletonOpen,
$_skeletonSingle,
$_styleDefinitions,
$_styleDefs,
$_tag
|