Skip to content

classes_lib_controls_form_input.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file lib/controls/form/input.class.php

class Input

This is a basic <input/>. Used as base class for all kind of inputs.

Extends: Control » Renderable

Subclasses: Button, CheckBox, FileInput, HiddenInput, PasswordInput, RadioButton, SubmitButton, TextInput

CreateLabel

Creates a label element for this input. Note that this only ensures that the label is correctly assigned to this input. It will not add it somewhere!

Definition: public function CreateLabel($text)

Returns: Label The created label element

Parameters:

  • string $text Text for the label

setName

Sets the name attribute.

Definition: public function setName($name)

Returns: static

Parameters:

  • string $name The type

setType

Sets the type attribute.

Definition: public function setType($type)

Returns: static

Parameters:

  • string $type The type

setValue

Sets the value attribute.

Definition: public function setValue($value)

Returns: static

Parameters:

  • string $value The value
Clone this wiki locally