TwigForm

Row
in package

Class that represents a row within the form.twig Macro of this package

Table of Contents

Properties

$option_types  : mixed
$possible_attributes  : mixed
$attributes  : mixed
$name  : mixed
$options  : mixed

Methods

__construct()  : mixed
constructor of form row
__toString()  : string
function to transform Row into JSON String
getOptions()  : array<string|int, mixed>
return options if they are set

Properties

$option_types

protected static mixed $option_types = ["select", "checkbox", "radio", "datalist"]

$possible_attributes

protected static mixed $possible_attributes = ["type", "hidden", "noTitle", "title", "label_attributes", "checked", "rows", "cols", "multiple", "plaintext", "class", "readonly", "required", "autofocus", "disabled", "placeholder", "value", "attributes", "option_attributes", "help"]

$attributes

private mixed $attributes = ["type" => "text"]

$name

private mixed $name = NULL

$options

private mixed $options = []

Methods

__construct()

constructor of form row

public __construct(string $ident[, bool $json = false ]) : mixed
Parameters
$ident : string

may be either row name or JSON representation of row; row name has to be non-empty and not NULL.

$json : bool = false

set to true if $ident is JSON representation ...

__toString()

function to transform Row into JSON String

public __toString() : string
Return values
string

JSON representation

getOptions()

return options if they are set

protected getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

list of options


        
On this page

Search results