SocialAccountRepository
extends AbstractRepository
in package
implements
SocialAccountRepositoryInterface
Class SocialAccountRepository.
Table of Contents
Interfaces
- SocialAccountRepositoryInterface
- Interface SocialAccountRepositoryInterface.
Properties
- $model : SocialAccount
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createSocialAccount() : SocialAccount
- Create social account.
- deleteSocialAccountsByUserId() : void
- findSocialAccount() : SocialAccount|null
- Check if social account exists.
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- Specify Model class name.
- where() : $this
- withUserMorphTypeActiveScope() : self
Properties
$model
public
SocialAccount
$model
$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
boolcreateSocialAccount()
Create social account.
public
createSocialAccount(string $providerUserId, string $provider, int $userId) : SocialAccount
Parameters
- $providerUserId : string
- $provider : string
- $userId : int
Return values
SocialAccountdeleteSocialAccountsByUserId()
public
deleteSocialAccountsByUserId(int $userId) : void
Parameters
- $userId : int
findSocialAccount()
Check if social account exists.
public
findSocialAccount(string $providerUserId, string $provider[, mixed $with = [] ]) : SocialAccount|null
Parameters
- $providerUserId : string
- $provider : string
- $with : mixed = []
-
- relations.
Return values
SocialAccount|nullgetUserContractMorphTypeColumns()
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()
Specify Model class name.
public
model() : string
Return values
stringwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self