ISearchOption¶
-
interface
OCP\FullTextSearch\Model\
ISearchOption
¶ Implemented by: OC\FullTextSearch\Model\SearchOption
Source: lib/public/FullTextSearch/Model/ISearchOption.php#36
Constants¶
-
CHECKBOX = checkbox
Source: lib/public/FullTextSearch/Model/ISearchOption.php#42 Since: 16.0.0
-
INPUT = input
Source: lib/public/FullTextSearch/Model/ISearchOption.php#47 Since: 16.0.0
-
INPUT_SMALL = small
Source: lib/public/FullTextSearch/Model/ISearchOption.php#52 Since: 16.0.0
Methods¶
-
public
OCP\FullTextSearch\Model\ISearchOption::
setName
($name)¶ - Set the name/key of the option.The string should only contains alphanumerical chars and underscore.The key can be retrieve when using ISearchRequest::getOption
Source: Parameters: - $name (string)
See: Since: 16.0.0
Returns:
-
public
OCP\FullTextSearch\Model\ISearchOption::
getName
()¶ - Get the name/key of the option.
Source: lib/public/FullTextSearch/Model/ISearchOption.php#77 Since: 16.0.0 Returns: string
-
public
OCP\FullTextSearch\Model\ISearchOption::
setTitle
($title)¶ - Set the title/display name of the option.
Source: Parameters: - $title (string)
Since: 16.0.0
Returns:
-
public
OCP\FullTextSearch\Model\ISearchOption::
getTitle
()¶ - Get the title of the option.
Source: lib/public/FullTextSearch/Model/ISearchOption.php#98 Since: 16.0.0 Returns: string
-
public
OCP\FullTextSearch\Model\ISearchOption::
setType
($type)¶ - Set the type of the option.$type can be ISearchOption::CHECKBOX or ISearchOption::INPUT
Source: Parameters: - $type (string)
Since: 16.0.0
Returns:
-
public
OCP\FullTextSearch\Model\ISearchOption::
getType
()¶ - Get the type of the option.
Source: lib/public/FullTextSearch/Model/ISearchOption.php#120 Since: 16.0.0 Returns: string
-
public
OCP\FullTextSearch\Model\ISearchOption::
setSize
($size)¶ - In case of Type is INPUT, set the size of the input field.Value can be ISearchOption::INPUT_SMALL or not defined.
Source: Parameters: - $size (string)
Since: 16.0.0
Returns:
-
public
OCP\FullTextSearch\Model\ISearchOption::
getSize
()¶ - Get the size of the INPUT.
Source: lib/public/FullTextSearch/Model/ISearchOption.php#142 Since: 16.0.0 Returns: string
-
public
OCP\FullTextSearch\Model\ISearchOption::
setPlaceholder
($placeholder)¶ - In case of Type is , set the placeholder to be displayed in the inputfield.
Source: Parameters: - $placeholder (string)
Since: 16.0.0
Returns:
-
public
OCP\FullTextSearch\Model\ISearchOption::
getPlaceholder
()¶ - Get the placeholder.
Source: lib/public/FullTextSearch/Model/ISearchOption.php#164 Since: 16.0.0 Returns: string