MetaFox

BoundsScope extends BaseScope
in package

Class BoundsScope.

Table of Contents

Constants

DEFAULT_LAT_FIELD  = 'location_latitude'
DEFAULT_LNG_FIELD  = 'location_longitude'

Properties

$bounds  : array<string|int, mixed>|null
$table  : string|null

Methods

apply()  : mixed
applyQueryBuilder()  : void
getBounds()  : array<string|int, mixed>|null
getTable()  : string|null
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
setBounds()  : $this
alias()  : string

Constants

DEFAULT_LAT_FIELD

public mixed DEFAULT_LAT_FIELD = 'location_latitude'

DEFAULT_LNG_FIELD

public mixed DEFAULT_LNG_FIELD = 'location_longitude'

Properties

$bounds

protected array<string|int, mixed>|null $bounds = null

Methods

apply()

public apply(Builder $builder, Model $model) : mixed
Parameters
$builder : Builder
$model : Model

applyQueryBuilder()

public applyQueryBuilder(Builder $builder) : void
Parameters
$builder : Builder

getBounds()

public getBounds() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getTable()

public getTable() : string|null
Return values
string|null

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

setBounds()

public setBounds(array<string|int, mixed>|null $bounds) : $this
Parameters
$bounds : array<string|int, mixed>|null
Return values
$this

alias()

protected alias(string $table, string $column) : string
Parameters
$table : string
$column : string
Return values
string

        
On this page

Search results