DuplicateVolatileCriterion extends DuplicateCriterion
Table of Contents
Methods
- __construct() : mixed
- checkIndex() : bool
- createDuplicate() : Duplicate
- createFromMatches() : DuplicateVolatileCriterion
- equals() : bool
- find() : Duplicate|null
- getActualCount() : mixed
- getAllSupportedDedupeTypes() : array<string|int, mixed>
- getCategoryId() : int|null
- getEntityIDs() : mixed
- getEntityTypeId() : int
- getHiddenSupportedDedupeTypes() : mixed
- getIndexTypeID() : int
- getMatchDescription() : string
- getMatches() : array<string|int, mixed>
- getMatchHash() : string
- getMatchName() : string
- getRegisteredEntityMatches() : array<string|int, mixed>
- getScope() : mixed
- getSummary() : string|null
- getSupportedDedupeTypes() : array<string|int, mixed>
- getSupportedEntityTypes() : array<string|int, mixed>
- getTextTotals() : string|null
- getTypeName() : string
- getValue() : string
- getVolatileTypeId() : int
- isEmpty() : bool
- isNull() : bool
- isStrictComparison() : mixed
- isSupportedType() : bool
- limitByAssignedUser() : bool
- loadEntityMatches() : array<string|int, mixed>
- prepareCode() : string
- prepareCodes() : array<string|int, mixed>
- prepareMatchHash() : mixed
- prepareSearchQuery() : Query
- Prepare duplicate search query
- prepareSortParams() : array<string|int, mixed>
- register() : mixed
- setCategoryId() : void
- setLimitByAssignedUser() : void
- setStrictComparison() : mixed
- setValue() : mixed
- sortDescendingByEntityTypeId() : $this
- Sort descending by entity ID.
- unregister() : mixed
Methods
__construct()
public
__construct(int $volatileTypeId[, string $value = '' ]) : mixed
Parameters
- $volatileTypeId : int
- $value : string = ''
checkIndex()
public
static checkIndex(array<string|int, mixed> $params) : bool
Parameters
- $params : array<string|int, mixed>
Return values
boolcreateDuplicate()
public
createDuplicate(mixed $entityTypeID, mixed $rootEntityID, mixed $userID, mixed $enablePermissionCheck, mixed $enableRanking[, mixed $limit = 0 ]) : Duplicate
Parameters
- $entityTypeID : mixed
- $rootEntityID : mixed
- $userID : mixed
- $enablePermissionCheck : mixed
- $enableRanking : mixed
- $limit : mixed = 0
Return values
DuplicatecreateFromMatches()
public
static createFromMatches(array<string|int, mixed> $matches) : DuplicateVolatileCriterion
Parameters
- $matches : array<string|int, mixed>
Return values
DuplicateVolatileCriterionequals()
public
equals(DuplicateCriterion $item) : bool
Parameters
- $item : DuplicateCriterion
Return values
boolfind()
public
find([mixed $entityTypeID = CCrmOwnerType::Undefined ][, mixed $limit = 50 ]) : Duplicate|null
Parameters
- $entityTypeID : mixed = CCrmOwnerType::Undefined
- $limit : mixed = 50
Return values
Duplicate|nullgetActualCount()
public
getActualCount(mixed $entityTypeID, mixed $rootEntityID, mixed $userID[, mixed $enablePermissionCheck = false ][, mixed $limit = 0 ]) : mixed
Parameters
- $entityTypeID : mixed
- $rootEntityID : mixed
- $userID : mixed
- $enablePermissionCheck : mixed = false
- $limit : mixed = 0
getAllSupportedDedupeTypes()
public
static getAllSupportedDedupeTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getCategoryId()
public
getCategoryId() : int|null
Return values
int|nullgetEntityIDs()
public
getEntityIDs(mixed $entityTypeID, mixed $rootEntityID, mixed $userID, mixed $enablePermissionCheck[, array<string|int, mixed> $options = null ]) : mixed
Parameters
- $entityTypeID : mixed
- $rootEntityID : mixed
- $userID : mixed
- $enablePermissionCheck : mixed
- $options : array<string|int, mixed> = null
getEntityTypeId()
public
getEntityTypeId() : int
Return values
intgetHiddenSupportedDedupeTypes()
public
static getHiddenSupportedDedupeTypes() : mixed
getIndexTypeID()
public
getIndexTypeID() : int
Return values
intgetMatchDescription()
public
getMatchDescription() : string
Return values
stringgetMatches()
public
getMatches() : array<string|int, mixed>
Return values
array<string|int, mixed>getMatchHash()
public
getMatchHash() : string
Return values
stringgetMatchName()
public
getMatchName() : string
Return values
stringgetRegisteredEntityMatches()
public
static getRegisteredEntityMatches(int $entityTypeID, int $entityID[, int $volatileTypeId = DuplicateIndexType::UNDEFINED ]) : array<string|int, mixed>
Parameters
- $entityTypeID : int
- $entityID : int
- $volatileTypeId : int = DuplicateIndexType::UNDEFINED
Return values
array<string|int, mixed>getScope()
public
getScope() : mixed
getSummary()
public
getSummary() : string|null
Return values
string|nullgetSupportedDedupeTypes()
public
static getSupportedDedupeTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getSupportedEntityTypes()
public
static getSupportedEntityTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getTextTotals()
public
getTextTotals(mixed $count[, mixed $limit = 0 ]) : string|null
Parameters
- $count : mixed
- $limit : mixed = 0
Return values
string|nullgetTypeName()
public
getTypeName() : string
Return values
stringgetValue()
public
getValue() : string
Return values
stringgetVolatileTypeId()
public
getVolatileTypeId() : int
Return values
intisEmpty()
public
isEmpty(int $entityTypeId, int $rootEntityId, mixed $userId[, bool $enablePermissionCheck = false ]) : bool
Parameters
- $entityTypeId : int
- $rootEntityId : int
- $userId : mixed
- $enablePermissionCheck : bool = false
Return values
boolisNull()
public
isNull() : bool
Return values
boolisStrictComparison()
public
isStrictComparison() : mixed
isSupportedType()
public
static isSupportedType(int $volatileTypeId) : bool
Parameters
- $volatileTypeId : int
Return values
boollimitByAssignedUser()
public
limitByAssignedUser() : bool
Return values
boolloadEntityMatches()
public
static loadEntityMatches(mixed $entityTypeId, mixed $entityId, mixed $volatileTypeId) : array<string|int, mixed>
Parameters
- $entityTypeId : mixed
- $entityId : mixed
- $volatileTypeId : mixed
Return values
array<string|int, mixed>prepareCode()
public
static prepareCode(int $volatileTypeId, string $value) : string
Parameters
- $volatileTypeId : int
- $value : string
Return values
stringprepareCodes()
public
static prepareCodes(int $volatileTypeId, array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $volatileTypeId : int
- $values : array<string|int, mixed>
Return values
array<string|int, mixed>prepareMatchHash()
public
static prepareMatchHash(array<string|int, mixed> $matches) : mixed
Parameters
- $matches : array<string|int, mixed>
prepareSearchQuery()
Prepare duplicate search query
public
prepareSearchQuery([mixed $entityTypeID = CCrmOwnerType::Undefined ][, array<string|int, mixed> $select = null ][, array<string|int, mixed> $order = null ][, mixed $limit = 0 ]) : Query
Parameters
- $entityTypeID : mixed = CCrmOwnerType::Undefined
-
Target Entity Type ID
- $select : array<string|int, mixed> = null
- $order : array<string|int, mixed> = null
- $limit : mixed = 0
-
Limit of result query
Return values
QueryprepareSortParams()
public
static prepareSortParams(int $entityTypeID, array<string|int, mixed> $entityIDs[, int $volatileTypeId = DuplicateIndexType::UNDEFINED ]) : array<string|int, mixed>
Parameters
- $entityTypeID : int
- $entityIDs : array<string|int, mixed>
- $volatileTypeId : int = DuplicateIndexType::UNDEFINED
Return values
array<string|int, mixed>register()
public
static register(int $entityTypeId, int $entityId[, array<string|int, mixed> $fieldCategoryIds = [] ][, array<string|int, mixed> $volatileTypes = [] ]) : mixed
Parameters
- $entityTypeId : int
- $entityId : int
- $fieldCategoryIds : array<string|int, mixed> = []
- $volatileTypes : array<string|int, mixed> = []
setCategoryId()
public
setCategoryId(int|null $categoryId) : void
Parameters
- $categoryId : int|null
setLimitByAssignedUser()
public
setLimitByAssignedUser(bool $limitByAssignedUser) : void
Parameters
- $limitByAssignedUser : bool
setStrictComparison()
public
setStrictComparison(mixed $useStrictComparison) : mixed
Parameters
- $useStrictComparison : mixed
setValue()
public
setValue(string $value) : mixed
Parameters
- $value : string
sortDescendingByEntityTypeId()
Sort descending by entity ID.
public
sortDescendingByEntityTypeId([bool $mode = true ]) : $this
Parameters
- $mode : bool = true
-
Mode.
Return values
$thisunregister()
public
static unregister(int $entityTypeId, int $entityId[, int $volatileTypeId = DuplicateIndexType::UNDEFINED ]) : mixed
Parameters
- $entityTypeId : int
- $entityId : int
- $volatileTypeId : int = DuplicateIndexType::UNDEFINED