SearchOption¶
-
class
OC\FullTextSearch\Model\SearchOption¶ Source: lib/private/FullTextSearch/Model/SearchOption.php#39 Implements: OCP\FullTextSearch\Model\ISearchOptionJsonSerializable
Properties¶
Methods¶
-
public
OC\FullTextSearch\Model\SearchOption::__construct($name="", $title="", $type="", $size="", $placeholder="")¶ - ISearchOption constructor.Some value can be setduring the creation of the object.
Source: Parameters: - $name (string)
- $title (string)
- $type (string)
- $size (string)
- $placeholder (string)
Since: 15.0.0
-
public
OC\FullTextSearch\Model\SearchOption::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: \OC\FullTextSearch\Model\ISearchRequest::getOptionSince: 15.0.0
Returns:
-
public
OC\FullTextSearch\Model\SearchOption::getName()¶ - Get the name/key of the option.
Source: lib/private/FullTextSearch/Model/SearchOption.php#155 Since: 15.0.0 Returns: string
-
public
OC\FullTextSearch\Model\SearchOption::setTitle($title)¶ - Set the title/display name of the option.
Source: Parameters: - $title (string)
Since: 15.0.0
Returns:
-
public
OC\FullTextSearch\Model\SearchOption::getTitle()¶ - Get the title of the option.
Source: lib/private/FullTextSearch/Model/SearchOption.php#182 Since: 15.0.0 Returns: string
-
public
OC\FullTextSearch\Model\SearchOption::setType($type)¶ - Set the type of the option.$type can be ISearchOption::CHECKBOX or ISearchOption::INPUT
Source: Parameters: - $type (string)
Since: 15.0.0
Returns:
-
public
OC\FullTextSearch\Model\SearchOption::getType()¶ - Get the type of the option.
Source: lib/private/FullTextSearch/Model/SearchOption.php#210 Since: 15.0.0 Returns: string
-
public
OC\FullTextSearch\Model\SearchOption::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: 15.0.0
Returns:
-
public
OC\FullTextSearch\Model\SearchOption::getSize()¶ - Get the size of the INPUT.
Source: lib/private/FullTextSearch/Model/SearchOption.php#238 Since: 15.0.0 Returns: string
-
public
OC\FullTextSearch\Model\SearchOption::setPlaceholder($placeholder)¶ - In case of Type is , set the placeholder to be displayed in the inputfield.
Source: Parameters: - $placeholder (string)
Since: 15.0.0
Returns:
-
public
OC\FullTextSearch\Model\SearchOption::getPlaceholder()¶ - Get the placeholder.
Source: lib/private/FullTextSearch/Model/SearchOption.php#266 Since: 15.0.0 Returns: string
-
public
OC\FullTextSearch\Model\SearchOption::jsonSerialize()¶ Source: lib/private/FullTextSearch/Model/SearchOption.php#276 Since: 15.0.0 Returns: array