MetaFox

EntityTypeScope extends BaseScope
in package

Class EntityTypeScope.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$entities  : array<string, string>
$entityTypeColumn  : string
$table  : string

Methods

__construct()  : mixed
__construct.
apply()  : mixed
applyQueryBuilder()  : void
getEntities()  : mixed
Get the value of entities.
getEntityTypeColumn()  : mixed
Get the value of entityColumn.
getTable()  : string
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
setEntities()  : self
Set the value of entities.
setEntityTypeColumn()  : self
Set the value of entityColumn.
setTable()  : self
alias()  : string
hasColumn()  : mixed

Properties

Methods

__construct()

__construct.

public __construct(string $table[, array<string|int, mixed> $entities = [] ]) : mixed
Parameters
$table : string
$entities : array<string|int, mixed> = []

apply()

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

applyQueryBuilder()

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

getEntities()

Get the value of entities.

public getEntities() : mixed

getEntityTypeColumn()

Get the value of entityColumn.

public getEntityTypeColumn() : mixed

likeOperator()

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

public likeOperator() : string
Return values
string

setEntities()

Set the value of entities.

public setEntities(mixed $entities) : self
Parameters
$entities : mixed
Return values
self

setEntityTypeColumn()

Set the value of entityColumn.

public setEntityTypeColumn(mixed $entityColumn) : self
Parameters
$entityColumn : mixed
Return values
self

setTable()

public setTable(string $table) : self
Parameters
$table : string
Return values
self

alias()

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

        
On this page

Search results