PHP 인터페이스 Sulu\Component\Contact\Model\ContactRepositoryInterface

상속: extends Sulu\Component\Persistence\Repository\RepositoryInterface
파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

findByAccountId() 공개 메소드

Searches for contacts with a specific account and the ability to exclude a certain contacts.
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

findByCriteriaEmailAndPhone() 공개 메소드

Finds a contact based on criteria and one email and one phone also joins account.
public findByCriteriaEmailAndPhone ( array $where, string $email = null, string $phone = null ) : Sulu\Component\Contact\Model\ContactInterface | null
$where array
$email string
$phone string
리턴 Sulu\Component\Contact\Model\ContactInterface | null

findById() 공개 메소드

Find a contact by id.
public findById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null
$id integer
리턴 Sulu\Component\Contact\Model\ContactInterface | null

findByIdAndDelete() 공개 메소드

Find a contact by id and load additional infos to delete referenced entities.
public findByIdAndDelete ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null
$id integer
리턴 Sulu\Component\Contact\Model\ContactInterface | null

findByIds() 공개 메소드

Find a contacts by ids.
public findByIds ( int[] $ids ) : Sulu\Component\Contact\Model\ContactInterface[]
$ids int[]
리턴 Sulu\Component\Contact\Model\ContactInterface[]

findContactWithAccountsById() 공개 메소드

Find a contact by id.
public findContactWithAccountsById ( integer $id ) : Sulu\Component\Contact\Model\ContactInterface | null
$id integer
리턴 Sulu\Component\Contact\Model\ContactInterface | null

findGetAll() 공개 메소드

Searches Entities by where clauses, pagination and sorted.
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