Processor

 class Winter\Storm\Halcyon\Processors\Processor

Methods

public processInsert (Winter\Storm\Halcyon\Builder $query, array $data) : string

Process the data in to an insert action.

Parameters
Property Description
$query
Winter\Storm\Halcyon\Builder
$data
array
Returns
string

public processSelect (Winter\Storm\Halcyon\Builder $query, array $results) : array

Process the results of a "select" query.

Parameters
Property Description
$query
Winter\Storm\Halcyon\Builder
$results
array
Returns
array

public processSelectOne (Winter\Storm\Halcyon\Builder $query, array | null $result) : array | null

Process the results of a singular "select" query.

Parameters
Property Description
$query
Winter\Storm\Halcyon\Builder
$result
array | null
Returns
array | null

public processUpdate (Winter\Storm\Halcyon\Builder $query, array $data) : string

Process the data in to an update action.

Parameters
Property Description
$query
Winter\Storm\Halcyon\Builder
$data
array
Returns
string

protected parseTemplateContent (Winter\Storm\Halcyon\Builder $query, array | null $result, string $fileName) : array

Helper to break down template content in to a useful array.

Parameters
Property Description
$query
$result
array | null
$fileName
string
Returns
array
Copyright © 2024 Winter CMS