MetaFox

ViewScope extends BaseScope
in package

Class ViewScope.

Table of Contents

Constants

VIEW_DEFAULT  = \MetaFox\Platform\Support\Browse\Browse::VIEW_ALL

Properties

$isViewOwner  : bool
$user  : User
$view  : string

Methods

apply()  : mixed
applyQueryBuilder()  : void
getAllowView()  : array<int, string>
getUserContext()  : User
getView()  : string
isViewOwner()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
setIsViewOwner()  : ViewScope
setUserContext()  : ViewScope
setView()  : ViewScope
alias()  : string

Constants

VIEW_DEFAULT

public mixed VIEW_DEFAULT = \MetaFox\Platform\Support\Browse\Browse::VIEW_ALL

Properties

$isViewOwner

protected bool $isViewOwner = false

$view

protected string $view = self::VIEW_DEFAULT

Methods

apply()

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

applyQueryBuilder()

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

getAllowView()

public static getAllowView() : array<int, string>
Return values
array<int, string>

getView()

public getView() : string
Return values
string

isViewOwner()

public isViewOwner() : bool
Return values
bool

likeOperator()

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

public likeOperator() : string
Return values
string

alias()

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

        
On this page

Search results