MetaFox

PackageScope extends BaseScope
in package

Class PackageScope.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$packages  : array<string|int, string>
$table  : string

Methods

__construct()  : mixed
__construct.
apply()  : mixed
applyQueryBuilder()  : void
getPackages()  : array<string|int, string>
getPackages.
getTable()  : string
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
setPackages()  : self
setPackages.
setTable()  : self
alias()  : string

Properties

Methods

__construct()

__construct.

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

apply()

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

applyQueryBuilder()

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

getPackages()

getPackages.

public getPackages() : array<string|int, string>
Return values
array<string|int, string>

getTable()

public getTable() : string
Return values
string

likeOperator()

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

public likeOperator() : string
Return values
string

setPackages()

setPackages.

public setPackages([array<string|int, string> $packages = [] ]) : self
Parameters
$packages : array<string|int, string> = []
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