ISearchOption
in
Tags
Table of Contents
Constants
- CHECKBOX = 'checkbox'
- INPUT = 'input'
- INPUT_SMALL = 'small'
Methods
- getName() : string
- Get the name/key of the option.
- getPlaceholder() : string
- Get the placeholder.
- getSize() : string
- Get the size of the INPUT.
- getTitle() : string
- Get the title of the option.
- getType() : string
- Get the type of the option.
- setName() : ISearchOption
- Set the name/key of the option.
- setPlaceholder() : ISearchOption
- In case of Type is , set the placeholder to be displayed in the input field.
- setSize() : ISearchOption
- In case of Type is INPUT, set the size of the input field.
- setTitle() : ISearchOption
- Set the title/display name of the option.
- setType() : ISearchOption
- Set the type of the option.
Constants
CHECKBOX
public
mixed
CHECKBOX
= 'checkbox'
Tags
INPUT
public
mixed
INPUT
= 'input'
Tags
INPUT_SMALL
public
mixed
INPUT_SMALL
= 'small'
Tags
Methods
getName()
Get the name/key of the option.
public
getName() : string
Tags
Return values
stringgetPlaceholder()
Get the placeholder.
public
getPlaceholder() : string
Tags
Return values
stringgetSize()
Get the size of the INPUT.
public
getSize() : string
Tags
Return values
stringgetTitle()
Get the title of the option.
public
getTitle() : string
Tags
Return values
stringgetType()
Get the type of the option.
public
getType() : string
Tags
Return values
stringsetName()
Set the name/key of the option.
public
setName(string $name) : ISearchOption
The string should only contains alphanumerical chars and underscore. The key can be retrieve when using ISearchRequest::getOption
Parameters
- $name : string
Tags
Return values
ISearchOptionsetPlaceholder()
In case of Type is , set the placeholder to be displayed in the input field.
public
setPlaceholder(string $placeholder) : ISearchOption
Parameters
- $placeholder : string
Tags
Return values
ISearchOptionsetSize()
In case of Type is INPUT, set the size of the input field.
public
setSize(string $size) : ISearchOption
Value can be ISearchOption::INPUT_SMALL or not defined.
Parameters
- $size : string
Tags
Return values
ISearchOptionsetTitle()
Set the title/display name of the option.
public
setTitle(string $title) : ISearchOption
Parameters
- $title : string
Tags
Return values
ISearchOptionsetType()
Set the type of the option.
public
setType(string $type) : ISearchOption
$type can be ISearchOption::CHECKBOX or ISearchOption::INPUT
Parameters
- $type : string