TextBox
in package
Text HTML input box custom widget.
Tags
Table of Contents
Properties
- $identifier : int
- An optional additional idenitfier to append to the id of the text box where many are on one page.
- $label : string
- The data label for the text object.
- $name : string
- The name of the HTML input box.
- $rows : int
- The amount of rows to display by default.
- $textObject : Text
- The text object that will be edited by this text box.
Methods
- __construct() : mixed
- The constructor.
- getTextObject() : Text
- Getter for text object.
- render() : string
- Renders the HTML and javascript for the text box.
- setTextObject() : void
- Setter for text object.
Properties
$identifier
An optional additional idenitfier to append to the id of the text box where many are on one page.
public
int
$identifier
Tags
$label
The data label for the text object.
public
string
$label
Tags
$name
The name of the HTML input box.
public
string
$name
Tags
$rows
The amount of rows to display by default.
public
int
$rows
Tags
$textObject
The text object that will be edited by this text box.
public
Text
$textObject
Tags
Methods
__construct()
The constructor.
public
__construct(Text $text, string $label, string $name[, int $rows = 5 ][, int $identifier = 0 ]) : mixed
Parameters
- $text : Text
-
The text object that will be edited by this text box.
- $label : string
-
The data label for the text object.
- $name : string
-
The name of the HTML input box.
- $rows : int = 5
-
The display size (rows).
- $identifier : int = 0
-
An additional idenitfier to append to the id of the text box.
Tags
getTextObject()
Getter for text object.
public
getTextObject() : Text
Tags
Return values
Textrender()
Renders the HTML and javascript for the text box.
public
render() : string
Tags
Return values
stringsetTextObject()
Setter for text object.
public
setTextObject(Text $text) : void
Parameters
- $text : Text