SearchConditions
This trait provides methods for managing search conditions.
- Full name:
\Zemit\Mvc\Controller\Traits\Query\Conditions\SearchConditions
Properties
searchConditions
protected ?\Phalcon\Support\Collection $searchConditions
Methods
initializeSearchConditions
Initializes the search conditions.
public initializeSearchConditions(): void
Throws:
setSearchConditions
Set the search conditions for this object.
public setSearchConditions(\Phalcon\Support\Collection|null $searchConditions): void
Parameters:
Parameter | Type | Description |
---|---|---|
$searchConditions | **\Phalcon\Support\Collection | null** |
getSearchConditions
Returns the search conditions.
public getSearchConditions(): \Phalcon\Support\Collection|null
Return Value:
The search conditions, represented as a collection.
defaultSearchCondition
Generates the default search condition for the method.
public defaultSearchCondition(): array|string|null
Return Value:
The default search condition, represented as an array containing the query, bind parameters, and bind types.
Throws:
If an error occurs while filtering the search parameter.