Skip to content

SearchFields

  • Full name: \Zemit\Mvc\Controller\Traits\Query\Fields\SearchFields

Properties

searchFields

protected ?\Phalcon\Support\Collection $searchFields

Methods

initializeSearchFields

Initializes the search fields.

public initializeSearchFields(): void

This method is responsible for initializing the necessary search fields for the model


setSearchFields

Sets the fields for searching data.

public setSearchFields(\Phalcon\Support\Collection|null $searchFields): void

Parameters:

Parameter Type Description
$searchFields **\Phalcon\Support\Collection null**

getSearchFields

Returns the search fields.

public getSearchFields(): \Phalcon\Support\Collection|null

This method retrieves the search fields for the model. If search fields have been set, it returns the collection of search fields. If no search fields have been set, it returns null.

Note: The search fields are the fields that are used with the search queries.

Return Value:

The collection of search fields or null if no search fields have been set.