ViewScope
extends BaseScope
in package
Class BaseScope.
Table of Contents
Constants
- VIEW_DEFAULT = \MetaFox\Platform\Support\Browse\Browse::VIEW_ALL
- VIEW_FEATURED = 'featured'
- VIEW_RECENT = 'recent'
- VIEW_RECOMMEND = 'recommend'
Properties
- $view : string
Methods
- apply() : mixed
- applyQueryBuilder() : void
- getAllowView() : array<string|int, string>
- getView() : string
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setView() : ViewScope
- alias() : string
Constants
VIEW_DEFAULT
public
mixed
VIEW_DEFAULT
= \MetaFox\Platform\Support\Browse\Browse::VIEW_ALL
VIEW_FEATURED
public
mixed
VIEW_FEATURED
= 'featured'
VIEW_RECENT
public
mixed
VIEW_RECENT
= 'recent'
VIEW_RECOMMEND
public
mixed
VIEW_RECOMMEND
= 'recommend'
Properties
$view
private
string
$view
= self::VIEW_DEFAULT
Methods
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
Tags
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getAllowView()
public
static getAllowView() : array<string|int, string>
Return values
array<string|int, string>getView()
public
getView() : string
Return values
stringlikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetView()
public
setView(string $view) : ViewScope
Parameters
- $view : string
Return values
ViewScopealias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string