StaticPageRepository
extends AbstractRepository
in package
implements
StaticPageRepositoryInterface
Class StaticPageRepository.
Table of Contents
Interfaces
- StaticPageRepositoryInterface
- Interface StaticPage.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createStaticPage() : StaticPage
- deleteStaticPage() : bool
- getAllStaticPage() : Collection
- getStaticPageOptions() : array<string|int, mixed>
- getStaticPageUrlById() : string
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : mixed
- updateStaticPage() : StaticPage
- where() : $this
- withUserMorphTypeActiveScope() : self
- getContentRepository() : StaticPageContentRepositoryInterface
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
cleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolcreateStaticPage()
public
createStaticPage(array<string|int, mixed> $attributes) : StaticPage
Parameters
- $attributes : array<string|int, mixed>
Return values
StaticPagedeleteStaticPage()
public
deleteStaticPage(int $id) : bool
Parameters
- $id : int
Return values
boolgetAllStaticPage()
public
getAllStaticPage() : Collection
Return values
CollectiongetStaticPageOptions()
public
getStaticPageOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getStaticPageUrlById()
public
getStaticPageUrlById(int|null $id) : string
Parameters
- $id : int|null
Return values
stringgetUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>hasSponsorView()
public
hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
- $attributes : array<string|int, mixed>
Return values
boolisNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
public
model() : mixed
updateStaticPage()
public
updateStaticPage(int $id, array<string|int, mixed> $attributes) : StaticPage
Parameters
- $id : int
- $attributes : array<string|int, mixed>
Return values
StaticPagewhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfgetContentRepository()
protected
getContentRepository() : StaticPageContentRepositoryInterface