Méthode | Description | |
---|---|---|
findByAccountId ( integer $accountId, null | integer $excludeContactId = null, boolean $arrayResult = true, boolean $onlyFetchMainAccounts = true ) : Sulu\Component\Contact\Model\ContactInterface[] | array | Searches for contacts with a specific account and the ability to exclude a certain contacts. | |
findByCriteriaEmailAndPhone ( array $where, string $email = null, string $phone = null ) : Sulu\Component\Contact\Model\ContactInterface | null | Finds a contact based on criteria and one email and one phone also joins account. | |
findById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | Find a contact by id. | |
findByIdAndDelete ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | Find a contact by id and load additional infos to delete referenced entities. | |
findByIds ( int[] $ids ) : Sulu\Component\Contact\Model\ContactInterface[] | Find a contacts by ids. | |
findContactWithAccountsById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | Find a contact by id. | |
findGetAll ( integer | null $limit = null, integer | null $offset = null, array | null $sorting = [], array | null $where = [] ) : array | Searches Entities by where clauses, pagination and sorted. |
public findByAccountId ( integer $accountId, null | integer $excludeContactId = null, boolean $arrayResult = true, boolean $onlyFetchMainAccounts = true ) : Sulu\Component\Contact\Model\ContactInterface[] | array | ||
$accountId | integer | |
$excludeContactId | null | integer | |
$arrayResult | boolean | |
$onlyFetchMainAccounts | boolean | Defines if only main relations should be returned |
Résultat | Sulu\Component\Contact\Model\ContactInterface[] | array |
public findByIdAndDelete ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | ||
$id | integer | |
Résultat | Sulu\Component\Contact\Model\ContactInterface | null |
public findByIds ( int[] $ids ) : Sulu\Component\Contact\Model\ContactInterface[] | ||
$ids | int[] | |
Résultat | Sulu\Component\Contact\Model\ContactInterface[] |
public findContactWithAccountsById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | ||
$id | integer | |
Résultat | Sulu\Component\Contact\Model\ContactInterface | null |
public findGetAll ( integer | null $limit = null, integer | null $offset = null, array | null $sorting = [], array | null $where = [] ) : array | ||
$limit | integer | null | Page size for Pagination |
$offset | integer | null | Offset for Pagination |
$sorting | array | null | Columns to sort |
$where | array | null | Where clauses |
Résultat | array |