ContactRepository
extends ServiceEntityRepository
in package
Tags
Table of Contents
Methods
- __construct() : mixed
- countByUser() : int
- Compte le nombre total de contacts pour un utilisateur avec recherche
- findByUserWithSearch() : array<string|int, mixed>
- Trouve les contacts d'un utilisateur avec pagination et recherche
- searchByUser() : array<string|int, mixed>
- Recherche rapide de contacts pour un utilisateur
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
countByUser()
Compte le nombre total de contacts pour un utilisateur avec recherche
public
countByUser(mixed $user[, string $search = '' ]) : int
Parameters
- $user : mixed
- $search : string = ''
Return values
intfindByUserWithSearch()
Trouve les contacts d'un utilisateur avec pagination et recherche
public
findByUserWithSearch(mixed $user[, string $search = '' ][, int $page = 1 ][, int $limit = 20 ]) : array<string|int, mixed>
Parameters
- $user : mixed
- $search : string = ''
- $page : int = 1
- $limit : int = 20
Return values
array<string|int, mixed>searchByUser()
Recherche rapide de contacts pour un utilisateur
public
searchByUser(mixed $user, string $search[, int $limit = 10 ]) : array<string|int, mixed>
Parameters
- $user : mixed
- $search : string
- $limit : int = 10