CoolCMS API

ParameterInterface

Table of Contents

Methods

addTranslation()  : self
getDefault()  : bool
getDefaultOptionId()  : int|null
getDefaultValue()  : string|null
getDisallowBlacklistedWords()  : ContentFilterMode
getDisallowUrl()  : ContentFilterMode
getFileType()  : string|null
getFilterMatchAll()  : bool
Within-facet matching: true requires the set to have all selected values (N filters), false matches any of them (`IN`).
getHasOptions()  : bool
getId()  : int|null
getImageId()  : int|null
getKey()  : string|null
getLft()  : int
getMaxLength()  : int|null
Max. number of characters of the value (visible text with the editor); null = no limit.
getMaxSize()  : int|null
getOptions()  : array<int, object>
getParameterGroupId()  : int|null
getParentId()  : int|null
getSearchDefault()  : bool
getSearchDefaultOptionId()  : int|null
getSearchDefaultValue()  : string|null
getSearchType()  : int|null
getSourceRules()  : array<int, object>
getTargetRules()  : array<int, object>
getThrowErrorOnBlacklistedWord()  : bool
getThrowErrorOnUrl()  : bool
getTranslation()  : ParameterTextInterface)|null
getTranslations()  : Collection<int, BaseEntity|ParameterTextInterface>
getType()  : int|null
getUseEditor()  : bool
getVisibleOptionsCount()  : int|null
isActive()  : bool
isAlwaysRegenerate()  : bool
isDefault()  : bool
isHasOptions()  : bool
isRequired()  : bool
isSearchDefault()  : bool
isSubstitution()  : bool
isThrowErrorOnBlacklistedWord()  : bool
isThrowErrorOnUrl()  : bool
isUseEditor()  : bool
removeTranslation()  : self
setActive()  : self
setAlwaysRegenerate()  : self
setDefault()  : self
setDefaultValue()  : self
setDisallowBlacklistedWords()  : self
setDisallowUrl()  : self
setFileType()  : self
setHasOptions()  : self
setKey()  : self
setMaxLength()  : self
setMaxSize()  : self
setParameterGroupId()  : self
setRequired()  : self
setSearchDefault()  : self
setSearchDefaultValue()  : self
setSearchType()  : self
setSubstitution()  : self
setThrowErrorOnBlacklistedWord()  : self
setThrowErrorOnUrl()  : self
setType()  : self
setUseEditor()  : self
setVisibleOptionsCount()  : self

Methods

getDefaultOptionId()

public getDefaultOptionId() : int|null
Return values
int|null

getDefaultValue()

public getDefaultValue() : string|null
Return values
string|null

getFilterMatchAll()

Within-facet matching: true requires the set to have all selected values (N filters), false matches any of them (`IN`).

public getFilterMatchAll() : bool
Return values
bool

getMaxLength()

Max. number of characters of the value (visible text with the editor); null = no limit.

public getMaxLength() : int|null
Return values
int|null

getOptions()

public getOptions() : array<int, object>
Return values
array<int, object>

getParameterGroupId()

public getParameterGroupId() : int|null
Return values
int|null

getSearchDefaultOptionId()

public getSearchDefaultOptionId() : int|null
Return values
int|null

getSearchDefaultValue()

public getSearchDefaultValue() : string|null
Return values
string|null

getSourceRules()

public getSourceRules() : array<int, object>
Return values
array<int, object>

getTargetRules()

public getTargetRules() : array<int, object>
Return values
array<int, object>

getThrowErrorOnBlacklistedWord()

public getThrowErrorOnBlacklistedWord() : bool
Return values
bool

getTranslation()

public getTranslation(int $langId) : ParameterTextInterface)|null
Parameters
$langId : int
Return values
ParameterTextInterface)|null

getVisibleOptionsCount()

public getVisibleOptionsCount() : int|null
Return values
int|null

isThrowErrorOnBlacklistedWord()

public isThrowErrorOnBlacklistedWord() : bool
Return values
bool

setActive()

public setActive(bool $active) : self
Parameters
$active : bool
Return values
self

setAlwaysRegenerate()

public setAlwaysRegenerate(bool $alwaysRegenerate) : self
Parameters
$alwaysRegenerate : bool
Return values
self

setDefault()

public setDefault(bool $default) : self
Parameters
$default : bool
Return values
self

setDefaultValue()

public setDefaultValue(string|null $defaultValue) : self
Parameters
$defaultValue : string|null
Return values
self

setFileType()

public setFileType(string|null $fileType) : self
Parameters
$fileType : string|null
Return values
self

setHasOptions()

public setHasOptions(bool $hasOptions) : self
Parameters
$hasOptions : bool
Return values
self

setKey()

public setKey(string|null $key) : self
Parameters
$key : string|null
Return values
self

setMaxLength()

public setMaxLength(int|null $maxLength) : self
Parameters
$maxLength : int|null
Return values
self

setMaxSize()

public setMaxSize(int|null $maxSize) : self
Parameters
$maxSize : int|null
Return values
self

setParameterGroupId()

public setParameterGroupId(int|null $parameterGroupId) : self
Parameters
$parameterGroupId : int|null
Return values
self

setRequired()

public setRequired(bool $required) : self
Parameters
$required : bool
Return values
self

setSearchDefault()

public setSearchDefault(bool $searchDefault) : self
Parameters
$searchDefault : bool
Return values
self

setSearchDefaultValue()

public setSearchDefaultValue(string|null $searchDefaultValue) : self
Parameters
$searchDefaultValue : string|null
Return values
self

setSearchType()

public setSearchType(int|null $searchType) : self
Parameters
$searchType : int|null
Return values
self

setSubstitution()

public setSubstitution(bool $substitution) : self
Parameters
$substitution : bool
Return values
self

setThrowErrorOnBlacklistedWord()

public setThrowErrorOnBlacklistedWord(bool $throwErrorOnBlacklistedWord) : self
Parameters
$throwErrorOnBlacklistedWord : bool
Return values
self

setThrowErrorOnUrl()

public setThrowErrorOnUrl(bool $throwErrorOnUrl) : self
Parameters
$throwErrorOnUrl : bool
Return values
self

setType()

public setType(int|null $type) : self
Parameters
$type : int|null
Return values
self

setUseEditor()

public setUseEditor(bool $useEditor) : self
Parameters
$useEditor : bool
Return values
self

setVisibleOptionsCount()

public setVisibleOptionsCount(int|null $visibleOptionsCount) : self
Parameters
$visibleOptionsCount : int|null
Return values
self
On this page

Search results