MetaFox

ShareRepository extends AbstractRepository
in package
implements ShareRepositoryInterface

Class AbstractRepository.

Table of Contents

Interfaces

ShareRepositoryInterface
Interface Share.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

buildQueryScopes()  : mixed
cleanContent()  : string|null
cleanTitle()  : string|null
createMany()  : bool
deleteOwnerData()  : void
deleteUserData()  : void
find()  : Share
getModel()  : Share
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
share()  : int
updateShare()  : Share
where()  : $this
withUserMorphTypeActiveScope()  : self
feedRepository()  : FeedRepositoryInterface
resolveItemType()  : array<string|int, mixed>
saveShare()  : Share

Properties

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|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

deleteOwnerData()

public deleteOwnerData(int $ownerId) : void
Parameters
$ownerId : int

deleteUserData()

public deleteUserData(int $userId) : void
Parameters
$userId : int

getUserContractMorphTypeColumns()

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
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

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

public likeOperator() : string
Return values
string

share()

public share(User $context, User $owner, array<string|int, mixed> $attributes) : int
Parameters
$context : User
$owner : User
$attributes : array<string|int, mixed>
Tags
SuppressWarnings

(PHPMD.CyclomaticComplexity)

SuppressWarnings

(PHPMD.NPathComplexity)

inheritdoc
Return values
int

updateShare()

public updateShare(Share $share, array<string, mixed> $attributes) : Share
Parameters
$share : Share
$attributes : array<string, mixed>
Return values
Share

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

resolveItemType()

private resolveItemType(array<string|int, mixed> $sharedData) : array<string|int, mixed>
Parameters
$sharedData : array<string|int, mixed>
Return values
array<string|int, mixed>

saveShare()

private saveShare(Share $share, array<string, mixed> $attributes) : Share
Parameters
$share : Share
$attributes : array<string, mixed>
Return values
Share

        
On this page

Search results