SmallTextBox
in package
String HTML input box custom widget.
Tags
Table of Contents
Properties
- $label : string
- The data label for the string object.
- $name : string
- The name of the HTML input box.
- $size : int
- The display size of the input box.
- $stringObject : SmallText
- The string object that will be edited by this string box.
Methods
- __construct() : mixed
- The constructor.
- getStringObject() : SmallText
- Getter for string object.
- render() : string
- Renders the HTML and javascript for the string box.
- setStringObject() : void
- Setter for string object.
Properties
$label
The data label for the string object.
public
string
$label
Tags
$name
The name of the HTML input box.
public
string
$name
Tags
$size
The display size of the input box.
public
int
$size
Tags
$stringObject
The string object that will be edited by this string box.
public
SmallText
$stringObject
Tags
Methods
__construct()
The constructor.
public
__construct(SmallText $string, string $label, string $name[, int $size = 0 ]) : mixed
Parameters
- $string : SmallText
-
The string object that will be edited by this text box.
- $label : string
-
The data label for the string object.
- $name : string
-
The name of the HTML input box.
- $size : int = 0
-
The display size (characters).
Tags
getStringObject()
Getter for string object.
public
getStringObject() : SmallText
Tags
Return values
SmallTextrender()
Renders the HTML and javascript for the string box.
public
render([bool $readOnly = false ]) : string
Parameters
- $readOnly : bool = false
-
set to true to make the text box readonly (defaults to false)
Tags
Return values
stringsetStringObject()
Setter for string object.
public
setStringObject(SmallText $string) : void
Parameters
- $string : SmallText