MetaFox

UserGenderRepository extends AbstractRepository
in package
implements UserGenderRepositoryInterface

Class UserGenderRepository.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Interfaces

UserGenderRepositoryInterface
Interface UserGenderRepositoryInterface.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

buildQueryScopes()  : mixed
cleanContent()  : string|null
cleanTitle()  : string|null
createGender()  : UserGender
createMany()  : bool
deleteGender()  : bool
findGenderByPhrase()  : UserGender|null
getForForms()  : array<int, array<string, mixed>>
getGenderOptions()  : array<string|int, mixed>
getModel()  : UserGender
getPhraseRepository()  : PhraseRepositoryInterface
getSuggestion()  : array<int, array<string, mixed>>
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
updateGender()  : UserGender
viewAllGenders()  : Collection
viewGenders()  : Paginator
viewGendersForAdmin()  : LengthAwarePaginator
where()  : $this
withUserMorphTypeActiveScope()  : self
buildQueryViewGendersAdmin()  : Builder

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

deleteGender()

public deleteGender(User $context, int $id) : bool
Parameters
$context : User
$id : int
Tags
inheritDoc
Return values
bool

getForForms()

public getForForms(User $context[, array<string|int, mixed>|null $where = null ]) : array<int, array<string, mixed>>
Parameters
$context : User
$where : array<string|int, mixed>|null = null
Tags
inheritDoc
Return values
array<int, array<string, mixed>>

getGenderOptions()

public getGenderOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPhraseRepository()

public getPhraseRepository() : PhraseRepositoryInterface
Return values
PhraseRepositoryInterface

getSuggestion()

public getSuggestion(array<string|int, mixed> $params) : array<int, array<string, mixed>>
Parameters
$params : array<string|int, mixed>
Tags
inheritDoc
Return values
array<int, array<string, mixed>>

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

updateGender()

public updateGender(User $context, int $id, array<string|int, mixed> $attributes) : UserGender
Parameters
$context : User
$id : int
$attributes : array<string|int, mixed>
Tags
inheritDoc
Return values
UserGender

viewAllGenders()

public viewAllGenders([array<string|int, mixed> $ids = [] ]) : Collection
Parameters
$ids : array<string|int, mixed> = []
Return values
Collection

viewGenders()

public viewGenders(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string|int, mixed>
Tags
inheritDoc
Return values
Paginator

viewGendersForAdmin()

public viewGendersForAdmin(User $context, array<string|int, mixed> $attributes) : LengthAwarePaginator
Parameters
$context : User
$attributes : array<string|int, mixed>
Tags
inheritDoc
Return values
LengthAwarePaginator

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

buildQueryViewGendersAdmin()

private buildQueryViewGendersAdmin(array<string, mixed> $attributes) : Builder
Parameters
$attributes : array<string, mixed>
Return values
Builder

        
On this page

Search results