Class MatukioHelperInput

since 3.0.0
package MatukioEvents

 Methods

Get a checkbox for the new co-style

getCheckbox(string $name, string $value, string $text, boolean $checked = false, string $tooltip = '', null $id = null) : string
Static
since 7.0.0

Parameters

$name

string

Name of the checbox

$value

string

Value (if checked)

$text

string

Text for the label

$checked

boolean

Should it be checked or not

$tooltip

string

Tooltip

$id

null

Optional id, if not taken from the name

Returns

string

Gets a checkbox button group

getCheckboxButton(string $name, string $id, array $values, string $sel = "", string $class = "", string $add = "") : string
Static

Parameters

$name

string
  • The name

$id

string
  • The id

$values

array
  • The value

$sel

string
  • The selected item

$class

string
  • The class

$add

string
  • Additional css

Returns

string

Gets a radio button group

getRadioButton(string $name, string $id, array $values, string $sel = "", string $class = "", string $add = "") : string
Static

Parameters

$name

string
  • The name

$id

string
  • The id

$values

array
  • The value

$sel

string
  • The selected item

$class

string
  • The class

$add

string
  • Additional css

Returns

string

Gets a radio button select

getRadioButtonBool(string $name, string $id, integer $value = 1, string $class = "", string $add = "") : string
Static

Parameters

$name

string
  • The name of the radio

$id

string
  • The id (_yes & _no)

$value

integer
  • The boolean value (default 1)

$class

string
  • The css classes (opt)

$add

string
  • Added to the element (opt)

Returns

string

Gets the tooltip

getTooltip(string $text, boolean $backend = true) : string
Static

Parameters

$text

string
  • The text

$backend

boolean
  • Are we in the backend (defaults to true)

Returns

string

Returns the fitting translated text for 0 1

getYesNo(integer $bool = 1) : string
Static

Parameters

$bool

integer
  • yes or no label

Returns

string

 Properties

 

$instance

$instance 

Default

Static