메소드 | 설명 | |
---|---|---|
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 |
리턴 | Sulu\Component\Contact\Model\ContactInterface[] | array |
public findByIdAndDelete ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | ||
$id | integer | |
리턴 | Sulu\Component\Contact\Model\ContactInterface | null |
public findByIds ( int[] $ids ) : Sulu\Component\Contact\Model\ContactInterface[] | ||
$ids | int[] | |
리턴 | Sulu\Component\Contact\Model\ContactInterface[] |
public findContactWithAccountsById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null | ||
$id | integer | |
리턴 | 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 |
리턴 | array |