UI element for a text input field.
More...
|
| __construct (string $name, string $value, string $label, bool $isdisabled=false, bool $isreadonly=false) |
| Constructor.
|
|
| html () |
| Render the html for this field.
|
|
| is_checkbox () |
| Nasty function used for spreading checkbox logic all around.
|
|
| is_dropdown () |
| Nasty function used for spreading dropdown logic all around.
|
|
| is_textbox () |
| Nasty function allowing custom textbox behaviour outside the class.
|
|
| set_max (?string $max) |
| Max attribute setter.
|
|
| set_min (?string $min) |
| Min attribute setter.
|
|
| set_type (?string $type) |
| Input type setter.
|
|
|
string | $label |
| The form label for this input.
|
|
string | $name |
| The first bit of the name for this input.
|
|
string | $value |
| The value for this input.
|
|
UI element for a text input field.
- Copyright
- 2014 Moodle Pty Ltd (http://moodle.com)
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
gradereport_singleview\local\ui\text_attribute::__construct |
( |
string | $name, |
|
|
string | $value, |
|
|
string | $label, |
|
|
bool | $isdisabled = false, |
|
|
bool | $isreadonly = false ) |
Constructor.
- Parameters
-
string | $name | The input name (the first bit) |
string | $value | The input initial value. |
string | $label | The label for this input field. |
bool | $isdisabled | Is this input disabled. |
bool | $isreadonly | If this is a read-only input. |
◆ html()
gradereport_singleview\local\ui\text_attribute::html |
( |
| ) |
|
◆ is_checkbox()
gradereport_singleview\local\ui\element::is_checkbox |
( |
| ) |
|
|
inherited |
◆ is_dropdown()
gradereport_singleview\local\ui\element::is_dropdown |
( |
| ) |
|
|
inherited |
◆ is_textbox()
gradereport_singleview\local\ui\text_attribute::is_textbox |
( |
| ) |
|
◆ set_max()
gradereport_singleview\local\ui\text_attribute::set_max |
( |
?string | $max | ) |
|
Max attribute setter.
- Parameters
-
- Return values
-
◆ set_min()
gradereport_singleview\local\ui\text_attribute::set_min |
( |
?string | $min | ) |
|
Min attribute setter.
- Parameters
-
- Return values
-
◆ set_type()
gradereport_singleview\local\ui\text_attribute::set_type |
( |
?string | $type | ) |
|
Input type setter.
- Parameters
-
- Return values
-
◆ $label
string gradereport_singleview\local\ui\element::$label |
|
inherited |
The form label for this input.
$label
◆ $name
string gradereport_singleview\local\ui\element::$name |
|
inherited |
The first bit of the name for this input.
$name
◆ $value
string gradereport_singleview\local\ui\element::$value |
|
inherited |
The value for this input.
$value
The documentation for this class was generated from the following file:
- grade/report/singleview/classes/local/ui/text_attribute.php