| extends | XoopsFormElement | 
|---|
Class XoopsFormCheckBox
| Methods | ||||
|---|---|---|---|---|
| 
					
	public
					
					
				 | __construct(string $caption, string $name, mixed $value = null, string $delimeter = ' ')
		Constructor
	 Constructor Parameters
 OverridesOverriden by | # | ||
| 
					
	public
					
					
				 | getValue(bool $encode = false): array
		Get the "value"
	 Get the "value" Parameters
 | # | ||
| 
					
	public
					
					
				 | setValue(array $value)
		Set the "value"
	 Set the "value" | # | ||
| 
					
	public
					
					
				 | addOption(string $value, string $name = '')
		Add an option
	 Add an option | # | ||
| 
					
	public
					
					
				 | addOptionArray(array $options)
		Add multiple Options at once
	 Add multiple Options at once Parameters
 | # | ||
| 
					
	public
					
					
				 | getOptions(bool|int $encode = false): array
		Get an array with all the options
	 Get an array with all the options Parameters
 ReturnsAssociative array of value->name pairs | # | ||
| 
					
	public
					
					
				 | getDelimeter(bool $encode = false): string
		Get the delimiter of this group
	 Get the delimiter of this group Parameters
 ReturnsThe delimiter | # | ||
| 
					
	public
					
					
				 | render(): string
		prepare HTML for output
	 | # | ||
| 
					
	public
					
					
				 | renderValidationJS()
		Render custom javascript validation code
	 | # | ||
| Properties | |||
|---|---|---|---|
| 
	public
					
					
				 | array | $_options = [] | # | 
| 
	public
					
					
				 | array | $_value = [] | # | 
| 
	public
					
					
				 | string | $_delimeter | # | 
| 
	public
					
					
				 | int | $columns | # | 
| Properties inherited from XoopsFormElement | 
|---|
| $customValidationCode, $_name, $_caption, $_accesskey, $_class, $_hidden, $_extra, $_required, $_description, $_nocolspan, $_formtype |