CSOpenSearchForm
in package
implements
IteratorAggregate
Represents an OpenSearch Form.
The Class dictates which fields (and their data) should be displayed. It is only a representation of data/definition. The style/html is handled by client.
Tags
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- __construct() : mixed
- addSection() : CSOpenSearchFormSection
- Adds a new instance of CSOpenSearchFormSectionField to current field set.
- getHeaderLabel() : null|string
- Returns the defined Header Label
- getIterator() : array<string|int, CSOpenSearchFormField>
- getSection() : CSOpenSearchFormSection
- Fetches the unique object of Form Section
- setHeaderLabel() : void
- Sets the Header label of the form This might be used on different places not necessarily as a Header Title of a form.
- toArray() : array<string|int, mixed>
- Transforms this object into an array.
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —addSection()
Adds a new instance of CSOpenSearchFormSectionField to current field set.
public
addSection(mixed $sSectionId) : CSOpenSearchFormSection
Parameters
- $sSectionId : mixed
Tags
Return values
CSOpenSearchFormSection —getHeaderLabel()
Returns the defined Header Label
public
getHeaderLabel() : null|string
Tags
Return values
null|string —Either null if not defined or a string.
getIterator()
public
getIterator() : array<string|int, CSOpenSearchFormField>
Tags
Return values
array<string|int, CSOpenSearchFormField> —getSection()
Fetches the unique object of Form Section
public
getSection(string $sSectionId) : CSOpenSearchFormSection
Parameters
- $sSectionId : string
-
The unique ID of the requested Section
Tags
Return values
CSOpenSearchFormSection —Assured section object for the form
setHeaderLabel()
Sets the Header label of the form This might be used on different places not necessarily as a Header Title of a form.
public
setHeaderLabel(string $sLabel) : void
For Example in Dialog this will be shows as Dialog Title.
Parameters
- $sLabel : string
-
A translated Label which should be shown as a Header of the Form
Tags
Return values
void —toArray()
Transforms this object into an array.
public
toArray() : array<string|int, mixed>
