Skip to content

ExposeFields

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

Properties

exposeFields

protected ?\Phalcon\Support\Collection $exposeFields

Methods

initializeExposeFields

Initializes the expose fields.

public initializeExposeFields(): void

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


setExposeFields

Sets the fields for exposing data.

public setExposeFields(\Phalcon\Support\Collection|null $exposeFields): void

Parameters:

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

getExposeFields

Returns the expose fields.

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

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

Note: The expose fields are the fields that are exposed with the response.

Return Value:

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