Builder
Class Builder
Table of Contents
Methods
- __construct() : mixed
- Filter constructor.
- applyFilter() : bool
- Apply filter.
- getContent() : Content
- Get content.
- hasField() : bool
- Return true if entity has field.
- isEnabled() : bool
- Return true if ca save.
- isFullTextIndexEnabled() : bool
- Is full text index enabled.
- save() : bool
- Save.
Methods
__construct()
Filter constructor.
public
__construct(Base $entity, string|null $fieldName) : mixed
Parameters
- $entity : Base
-
Entity.
- $fieldName : string|null
-
Field name.
applyFilter()
Apply filter.
public
applyFilter(array<string|int, mixed> &$filter, string|null $searchString) : bool
Parameters
- $filter : array<string|int, mixed>
-
Filter.
- $searchString : string|null
-
Search string.
Return values
boolgetContent()
Get content.
public
getContent() : Content
Return values
ContenthasField()
Return true if entity has field.
public
hasField() : bool
Return values
boolisEnabled()
Return true if ca save.
public
isEnabled() : bool
Return values
boolisFullTextIndexEnabled()
Is full text index enabled.
public
isFullTextIndexEnabled() : bool
Return values
boolsave()
Save.
public
save(int $entityId) : bool
Parameters
- $entityId : int
-
Entity ID.