RoleFeatureInterface
- Full name:
\Zemit\Models\Interfaces\RoleFeatureInterface
- Parent interfaces:
\Zemit\Models\Abstracts\Interfaces\RoleFeatureAbstractInterface
Inherited methods
getId
Returns the value of field id Column: id Attributes: First | Primary | NotNull | Numeric | Unsigned | AutoIncrement
public getId(): mixed
setId
Sets the value of field id Column: id Attributes: First | Primary | NotNull | Numeric | Unsigned | AutoIncrement
public setId(mixed $id): void
Parameters:
Parameter | Type | Description |
---|---|---|
$id | mixed |
getRoleId
Returns the value of field roleId Column: role_id Attributes: NotNull | Numeric | Unsigned
public getRoleId(): mixed
setRoleId
Sets the value of field roleId Column: role_id Attributes: NotNull | Numeric | Unsigned
public setRoleId(mixed $roleId): void
Parameters:
Parameter | Type | Description |
---|---|---|
$roleId | mixed |
getFeatureId
Returns the value of field featureId Column: feature_id Attributes: NotNull | Numeric | Unsigned
public getFeatureId(): mixed
setFeatureId
Sets the value of field featureId Column: feature_id Attributes: NotNull | Numeric | Unsigned
public setFeatureId(mixed $featureId): void
Parameters:
Parameter | Type | Description |
---|---|---|
$featureId | mixed |
getPosition
Returns the value of field position Column: position Attributes: NotNull | Numeric | Unsigned
public getPosition(): mixed
setPosition
Sets the value of field position Column: position Attributes: NotNull | Numeric | Unsigned
public setPosition(mixed $position): void
Parameters:
Parameter | Type | Description |
---|---|---|
$position | mixed |
getDeleted
Returns the value of field deleted Column: deleted Attributes: NotNull | Numeric | Unsigned | Type(26)
public getDeleted(): mixed
setDeleted
Sets the value of field deleted Column: deleted Attributes: NotNull | Numeric | Unsigned | Type(26)
public setDeleted(mixed $deleted): void
Parameters:
Parameter | Type | Description |
---|---|---|
$deleted | mixed |
getCreatedAt
Returns the value of field createdAt Column: created_at Attributes: NotNull | Type(4)
public getCreatedAt(): mixed
setCreatedAt
Sets the value of field createdAt Column: created_at Attributes: NotNull | Type(4)
public setCreatedAt(mixed $createdAt): void
Parameters:
Parameter | Type | Description |
---|---|---|
$createdAt | mixed |
getCreatedBy
Returns the value of field createdBy Column: created_by Attributes: Numeric | Unsigned
public getCreatedBy(): mixed
setCreatedBy
Sets the value of field createdBy Column: created_by Attributes: Numeric | Unsigned
public setCreatedBy(mixed $createdBy): void
Parameters:
Parameter | Type | Description |
---|---|---|
$createdBy | mixed |
getCreatedAs
Returns the value of field createdAs Column: created_as Attributes: Numeric | Unsigned
public getCreatedAs(): mixed
setCreatedAs
Sets the value of field createdAs Column: created_as Attributes: Numeric | Unsigned
public setCreatedAs(mixed $createdAs): void
Parameters:
Parameter | Type | Description |
---|---|---|
$createdAs | mixed |
getUpdatedAt
Returns the value of field updatedAt Column: updated_at Attributes: Type(4)
public getUpdatedAt(): mixed
setUpdatedAt
Sets the value of field updatedAt Column: updated_at Attributes: Type(4)
public setUpdatedAt(mixed $updatedAt): void
Parameters:
Parameter | Type | Description |
---|---|---|
$updatedAt | mixed |
getUpdatedBy
Returns the value of field updatedBy Column: updated_by Attributes: Numeric | Unsigned
public getUpdatedBy(): mixed
setUpdatedBy
Sets the value of field updatedBy Column: updated_by Attributes: Numeric | Unsigned
public setUpdatedBy(mixed $updatedBy): void
Parameters:
Parameter | Type | Description |
---|---|---|
$updatedBy | mixed |
getUpdatedAs
Returns the value of field updatedAs Column: updated_as Attributes: Numeric | Unsigned
public getUpdatedAs(): mixed
setUpdatedAs
Sets the value of field updatedAs Column: updated_as Attributes: Numeric | Unsigned
public setUpdatedAs(mixed $updatedAs): void
Parameters:
Parameter | Type | Description |
---|---|---|
$updatedAs | mixed |
getDeletedAt
Returns the value of field deletedAt Column: deleted_at Attributes: Type(4)
public getDeletedAt(): mixed
setDeletedAt
Sets the value of field deletedAt Column: deleted_at Attributes: Type(4)
public setDeletedAt(mixed $deletedAt): void
Parameters:
Parameter | Type | Description |
---|---|---|
$deletedAt | mixed |
getDeletedAs
Returns the value of field deletedAs Column: deleted_as Attributes: Numeric | Unsigned
public getDeletedAs(): mixed
setDeletedAs
Sets the value of field deletedAs Column: deleted_as Attributes: Numeric | Unsigned
public setDeletedAs(mixed $deletedAs): void
Parameters:
Parameter | Type | Description |
---|---|---|
$deletedAs | mixed |
getDeletedBy
Returns the value of field deletedBy Column: deleted_by Attributes: Numeric | Unsigned
public getDeletedBy(): mixed
setDeletedBy
Sets the value of field deletedBy Column: deleted_by Attributes: Numeric | Unsigned
public setDeletedBy(mixed $deletedBy): void
Parameters:
Parameter | Type | Description |
---|---|---|
$deletedBy | mixed |
getRestoredAt
Returns the value of field restoredAt Column: restored_at Attributes: Type(4)
public getRestoredAt(): mixed
setRestoredAt
Sets the value of field restoredAt Column: restored_at Attributes: Type(4)
public setRestoredAt(mixed $restoredAt): void
Parameters:
Parameter | Type | Description |
---|---|---|
$restoredAt | mixed |
getRestoredBy
Returns the value of field restoredBy Column: restored_by Attributes: Numeric | Unsigned
public getRestoredBy(): mixed
setRestoredBy
Sets the value of field restoredBy Column: restored_by Attributes: Numeric | Unsigned
public setRestoredBy(mixed $restoredBy): void
Parameters:
Parameter | Type | Description |
---|---|---|
$restoredBy | mixed |
getRestoredAs
Returns the value of field restoredAs Column: restored_as Attributes: Numeric | Unsigned
public getRestoredAs(): mixed
setRestoredAs
Sets the value of field restoredAs Column: restored_as Attributes: Numeric | Unsigned
public setRestoredAs(mixed $restoredAs): void
Parameters:
Parameter | Type | Description |
---|---|---|
$restoredAs | mixed |
getAttribute
public getAttribute(string $attribute): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$attribute | string |
setAttribute
public setAttribute(string $attribute, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$attribute | string | |
$value | mixed |
getBehavior
public getBehavior(string $behaviorName): \Phalcon\Mvc\Model\BehaviorInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$behaviorName | string |
setBehavior
public setBehavior(string $behaviorName, \Phalcon\Mvc\Model\BehaviorInterface $behavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$behaviorName | string | |
$behavior | \Phalcon\Mvc\Model\BehaviorInterface |
hasBehavior
public hasBehavior(string $behaviorName): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$behaviorName | string |
initializeBlameable
public initializeBlameable(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setBlameableBehavior
public setBlameableBehavior(\Zemit\Mvc\Model\Behavior\Blameable $blameableBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$blameableBehavior | \Zemit\Mvc\Model\Behavior\Blameable |
getBlameableBehavior
public getBlameableBehavior(): \Zemit\Mvc\Model\Behavior\Blameable
addUserRelationship
public addUserRelationship(string $field = 'userId', string $alias = 'UserEntity', array $params = [], string $ref = 'id', string $type = 'belongsTo', ?string $class = null): ?\Phalcon\Mvc\Model\Relation
Parameters:
Parameter | Type | Description |
---|---|---|
$field | string | |
$alias | string | |
$params | array | |
$ref | string | |
$type | string | |
$class | ?string |
getDateCallback
public getDateCallback(string $format, ?int $timestamp = null): \Closure
Parameters:
Parameter | Type | Description |
---|---|---|
$format | string | |
$timestamp | ?int |
initializeCreated
public initializeCreated(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setCreatedBehavior
public setCreatedBehavior(\Zemit\Mvc\Model\Behavior\Transformable $createdBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$createdBehavior | \Zemit\Mvc\Model\Behavior\Transformable |
getCreatedBehavior
public getCreatedBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
initializeDeleted
public initializeDeleted(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setDeletedBehavior
public setDeletedBehavior(\Zemit\Mvc\Model\Behavior\Transformable $deletedBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$deletedBehavior | \Zemit\Mvc\Model\Behavior\Transformable |
getDeletedBehavior
public getDeletedBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
initializeRestored
public initializeRestored(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setRestoredBehavior
public setRestoredBehavior(\Zemit\Mvc\Model\Behavior\Transformable $restoredBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$restoredBehavior | \Zemit\Mvc\Model\Behavior\Transformable |
getRestoredBehavior
public getRestoredBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
initializeUpdated
public initializeUpdated(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setUpdatedBehavior
public setUpdatedBehavior(\Zemit\Mvc\Model\Behavior\Transformable $updatedBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$updatedBehavior | \Zemit\Mvc\Model\Behavior\Transformable |
getUpdatedBehavior
public getUpdatedBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
findWith
public static findWith(array $arguments): array
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
findFirstWith
public static findFirstWith(array $arguments): ?\Phalcon\Mvc\ModelInterface
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
with
public static with(array $arguments): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
firstWith
public static firstWith(array $arguments): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
load
public load(array $arguments): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
getParametersFromArguments
public static getParametersFromArguments(array& $arguments): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
expose
public expose(?array $columns = null, ?bool $expose = null, ?bool $protected = null): array
Parameters:
Parameter | Type | Description |
---|---|---|
$columns | ?array | |
$expose | ?bool | |
$protected | ?bool |
hash
public hash(string $string, ?string $salt = null, ?string $workFactor = null): string
Parameters:
Parameter | Type | Description |
---|---|---|
$string | string | |
$salt | ?string | |
$workFactor | ?string |
checkHash
public checkHash(?string $hash = null, ?string $string = null, int $maxPassLength): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$hash | ?string | |
$string | ?string | |
$maxPassLength | int |
getIdentityService
public getIdentityService(): \Zemit\Identity
isLoggedIn
public isLoggedIn(bool $as = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$as | bool |
isLoggedInAs
public isLoggedInAs(): bool
getCurrentUser
public getCurrentUser(bool $as = false): ?\Zemit\Models\Interfaces\UserInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$as | bool |
getCurrentUserAs
public getCurrentUserAs(): ?\Zemit\Models\Interfaces\UserInterface
getCurrentUserId
public getCurrentUserId(bool $as = false): ?int
Parameters:
Parameter | Type | Description |
---|---|---|
$as | bool |
getCurrentUserIdCallback
public getCurrentUserIdCallback(bool $as = false): \Closure
Parameters:
Parameter | Type | Description |
---|---|---|
$as | bool |
jsonEncode
public jsonEncode(mixed $value, int $flags = JSON_UNESCAPED_SLASHES, int $depth = 512): string|false
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$flags | int | |
$depth | int |
jsonDecode
public jsonDecode(string $json, ?bool $associative = null, int $depth = 512, int $flags): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string | |
$associative | ?bool | |
$depth | int | |
$flags | int |
_
public _(string $translateKey, array $placeholders = []): string
Parameters:
Parameter | Type | Description |
---|---|---|
$translateKey | string | |
$placeholders | array |
__call
public __call(string $method, array $arguments): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$method | string | |
$arguments | array |
__set
public __set(string $property, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$property | string | |
$value | mixed |
__get
public __get(string $property): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$property | string |
getColumnMap
public getColumnMap(): ?array
getPrimaryKeys
public getPrimaryKeys(): array
getPrimaryKeysValues
public getPrimaryKeysValues(): array
initializeOptions
public initializeOptions(): void
getOptionsManager
public getOptionsManager(): \Zemit\Support\Options\ManagerInterface
setOptionsManager
public setOptionsManager(\Zemit\Support\Options\ManagerInterface $optionsManager): void
Parameters:
Parameter | Type | Description |
---|---|---|
$optionsManager | \Zemit\Support\Options\ManagerInterface |
initializePosition
public initializePosition(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setPositionBehavior
public setPositionBehavior(\Zemit\Mvc\Model\Behavior\Position $positionBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$positionBehavior | \Zemit\Mvc\Model\Behavior\Position |
getPositionBehavior
public getPositionBehavior(): \Zemit\Mvc\Model\Behavior\Position
reorder
public reorder(?int $position = null, ?string $positionField = null): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$position | ?int | |
$positionField | ?string |
setKeepMissingRelated
public setKeepMissingRelated(array $keepMissingRelated): void
Parameters:
Parameter | Type | Description |
---|---|---|
$keepMissingRelated | array |
getKeepMissingRelated
public getKeepMissingRelated(): array
getKeepMissingRelatedAlias
public getKeepMissingRelatedAlias(string $alias): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$alias | string |
setKeepMissingRelatedAlias
public setKeepMissingRelatedAlias(string $alias, bool $keepMissing): void
Parameters:
Parameter | Type | Description |
---|---|---|
$alias | string | |
$keepMissing | bool |
getRelationshipContext
public getRelationshipContext(): string
setRelationshipContext
public setRelationshipContext(string $context): void
Parameters:
Parameter | Type | Description |
---|---|---|
$context | string |
getDirtyRelated
public getDirtyRelated(): array
setDirtyRelated
public setDirtyRelated(array $dirtyRelated): void
Parameters:
Parameter | Type | Description |
---|---|---|
$dirtyRelated | array |
getDirtyRelatedAlias
public getDirtyRelatedAlias(string $alias): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$alias | string |
setDirtyRelatedAlias
public setDirtyRelatedAlias(string $alias, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$alias | string | |
$value | mixed |
hasDirtyRelated
public hasDirtyRelated(): bool
hasDirtyRelatedAlias
public hasDirtyRelatedAlias(string $alias): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$alias | string |
assignRelated
public assignRelated(array $data, ?array $whiteList = null, ?array $dataColumnMap = null): \Phalcon\Mvc\ModelInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array | |
$whiteList | ?array | |
$dataColumnMap | ?array |
postSaveRelatedRecordsAfter
public postSaveRelatedRecordsAfter(\Phalcon\Mvc\Model\RelationInterface $relation, mixed $relatedRecords, \Phalcon\Support\Collection\CollectionInterface $visited): ?bool
Parameters:
Parameter | Type | Description |
---|---|---|
$relation | \Phalcon\Mvc\Model\RelationInterface | |
$relatedRecords | mixed | |
$visited | \Phalcon\Support\Collection\CollectionInterface |
postSaveRelatedThroughAfter
public postSaveRelatedThroughAfter(\Phalcon\Mvc\Model\RelationInterface $relation, mixed $relatedRecords, \Phalcon\Support\Collection\CollectionInterface $visited): ?bool
Parameters:
Parameter | Type | Description |
---|---|---|
$relation | \Phalcon\Mvc\Model\RelationInterface | |
$relatedRecords | mixed | |
$visited | \Phalcon\Support\Collection\CollectionInterface |
getEntityFromData
public getEntityFromData(array $data, array $configuration = []): \Phalcon\Mvc\ModelInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array | |
$configuration | array |
appendMessages
public appendMessages(array $messages = [], ?string $context = null, ?int $index): void
Parameters:
Parameter | Type | Description |
---|---|---|
$messages | array | |
$context | ?string | |
$index | ?int |
appendMessagesFromRecord
public appendMessagesFromRecord(?\Phalcon\Mvc\ModelInterface $record = null, string $context = null, ?int $index): void
Parameters:
Parameter | Type | Description |
---|---|---|
$record | ?\Phalcon\Mvc\ModelInterface | |
$context | string | |
$index | ?int |
appendMessagesFromResultset
public appendMessagesFromResultset(?\Phalcon\Mvc\Model\ResultsetInterface $resultset = null, ?string $context = null, ?int $index): void
Parameters:
Parameter | Type | Description |
---|---|---|
$resultset | ?\Phalcon\Mvc\Model\ResultsetInterface | |
$context | ?string | |
$index | ?int |
appendMessagesFromRecordList
public appendMessagesFromRecordList(?iterable $recordList = null, ?string $context = null, ?int $index): void
Parameters:
Parameter | Type | Description |
---|---|---|
$recordList | ?iterable | |
$context | ?string | |
$index | ?int |
rebuildMessageContext
public rebuildMessageContext(\Phalcon\Messages\Message $message, string $context): ?string
Parameters:
Parameter | Type | Description |
---|---|---|
$message | \Phalcon\Messages\Message | |
$context | string |
rebuildMessageIndex
public rebuildMessageIndex(\Phalcon\Messages\Message $message, ?int $index): ?string
Parameters:
Parameter | Type | Description |
---|---|---|
$message | \Phalcon\Messages\Message | |
$index | ?int |
relatedToArray
public relatedToArray(?array $columns = null, bool $useGetter = true): array
Parameters:
Parameter | Type | Description |
---|---|---|
$columns | ?array | |
$useGetter | bool |
getReplicationLag
public static getReplicationLag(): ?int
- This method is static.
setReplicationLag
public static setReplicationLag(?int $replicationLag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$replicationLag | ?int |
getReplicationReadyAt
public static getReplicationReadyAt(): ?int
- This method is static.
setReplicationReadyAt
public static setReplicationReadyAt(?int $replicationReadyAt = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$replicationReadyAt | ?int |
initializeReplication
public initializeReplication(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
selectReadConnection
public selectReadConnection(): \Phalcon\Db\Adapter\AdapterInterface
addReadWriteConnectionBehavior
public addReadWriteConnectionBehavior(): void
isReplicationReady
public isReplicationReady(): bool
initializeSecurity
public initializeSecurity(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setSecurityBehavior
public setSecurityBehavior(\Zemit\Mvc\Model\Behavior\Security $securityBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$securityBehavior | \Zemit\Mvc\Model\Behavior\Security |
getSecurityBehavior
public getSecurityBehavior(): \Zemit\Mvc\Model\Behavior\Security
initializeSlug
public initializeSlug(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setSlugBehavior
public setSlugBehavior(\Zemit\Mvc\Model\Behavior\Transformable $slugBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$slugBehavior | \Zemit\Mvc\Model\Behavior\Transformable |
getSlugBehavior
public getSlugBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
initializeSnapshot
public initializeSnapshot(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setSnapshotBehavior
public setSnapshotBehavior(\Zemit\Mvc\Model\Behavior\Snapshot $snapshotBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$snapshotBehavior | \Zemit\Mvc\Model\Behavior\Snapshot |
getSnapshotBehavior
public getSnapshotBehavior(): \Zemit\Mvc\Model\Behavior\Snapshot
hasChangedCallback
public hasChangedCallback(callable $callback, bool $anyField = true): \Closure
Parameters:
Parameter | Type | Description |
---|---|---|
$callback | callable | |
$anyField | bool |
initializeSoftDelete
public initializeSoftDelete(?array $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | ?array |
setSoftDeleteBehavior
public setSoftDeleteBehavior(\Zemit\Mvc\Model\Behavior\SoftDelete $softDeleteBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$softDeleteBehavior | \Zemit\Mvc\Model\Behavior\SoftDelete |
getSoftDeleteBehavior
public getSoftDeleteBehavior(): \Zemit\Mvc\Model\Behavior\SoftDelete
disableSoftDelete
public disableSoftDelete(): void
enableSoftDelete
public enableSoftDelete(): void
isDeleted
public isDeleted(?string $field = null, ?int $deletedValue = null): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$field | ?string | |
$deletedValue | ?int |
restore
public restore(?string $field = null, ?int $notDeletedValue = null): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$field | ?string | |
$notDeletedValue | ?int |
genericValidation
public genericValidation(?\Zemit\Filter\Validation $validator = null): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | ?\Zemit\Filter\Validation |
addNotEmptyValidation
public addNotEmptyValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = false): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addPresenceValidation
public addPresenceValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addUnsignedIntValidation
public addUnsignedIntValidation(\Zemit\Filter\Validation $validator, array|string $field = 'id', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addUnsignedBigIntValidation
public addUnsignedBigIntValidation(\Zemit\Filter\Validation $validator, array|string $field = 'id', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addNumberValidation
public addNumberValidation(\Zemit\Filter\Validation $validator, array|string $field, int $min, int $max, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$min | int | |
$max | int | |
$allowEmpty | bool |
addStringLengthValidation
public addStringLengthValidation(\Zemit\Filter\Validation $validator, array|string $field, int $minChar, int $maxChar = 255, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$minChar | int | |
$maxChar | int | |
$allowEmpty | bool |
addInclusionInValidation
public addInclusionInValidation(\Zemit\Filter\Validation $validator, array|string $field, array $domainList = [], bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$domainList | array | |
$allowEmpty | bool |
addBooleanValidation
public addBooleanValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addInclusionValidation
public addInclusionValidation(\Zemit\Filter\Validation $validator, array|string $field, array $domain = [], bool $allowEmpty = true, bool $strict = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$domain | array | |
$allowEmpty | bool | |
$strict | bool |
addUniquenessValidation
public addUniquenessValidation(\Zemit\Filter\Validation $validator, string|array $field, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **string | array** |
$allowEmpty | bool |
addEmailValidation
public addEmailValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addDateValidation
public addDateValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, string $format = Column::DATE_FORMAT): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool | |
$format | string |
addDateTimeValidation
public addDateTimeValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, string $format = Column::DATETIME_FORMAT): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool | |
$format | string |
addJsonValidation
public addJsonValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, int $depth = 512, int $flags): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool | |
$depth | int | |
$flags | int |
addColorValidation
public addColorValidation(\Zemit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | **array | string** |
$allowEmpty | bool |
addIdValidation
public addIdValidation(\Zemit\Filter\Validation $validator, string $field = 'id'): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | string |
addPositionValidation
public addPositionValidation(\Zemit\Filter\Validation $validator, string $field = 'position', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | string | |
$allowEmpty | bool |
addSoftDeleteValidation
public addSoftDeleteValidation(\Zemit\Filter\Validation $validator, string $field = 'deleted', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | string | |
$allowEmpty | bool |
addUuidValidation
public addUuidValidation(\Zemit\Filter\Validation $validator, string $field = 'uuid', bool $allowEmpty = false): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$field | string | |
$allowEmpty | bool |
addCrudValidation
public addCrudValidation(\Zemit\Filter\Validation $validator, string $userIdField, string $dateField, bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$userIdField | string | |
$dateField | string | |
$allowEmpty | bool |
addCreatedValidation
public addCreatedValidation(\Zemit\Filter\Validation $validator, string $createdByField = 'createdBy', string $createdAtField = 'createdAt', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$createdByField | string | |
$createdAtField | string | |
$allowEmpty | bool |
addUpdatedValidation
public addUpdatedValidation(\Zemit\Filter\Validation $validator, string $updatedByField = 'updatedBy', string $updatedAtField = 'updatedAt', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$updatedByField | string | |
$updatedAtField | string | |
$allowEmpty | bool |
addDeletedValidation
public addDeletedValidation(\Zemit\Filter\Validation $validator, string $deletedField = 'deletedBy', string $dateField = 'deletedAt', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$deletedField | string | |
$dateField | string | |
$allowEmpty | bool |
addRestoredValidation
public addRestoredValidation(\Zemit\Filter\Validation $validator, string $restoredByField = 'restoredBy', string $restoredAtField = 'restoredAt', bool $allowEmpty = true): \Zemit\Filter\Validation
Parameters:
Parameter | Type | Description |
---|---|---|
$validator | \Zemit\Filter\Validation | |
$restoredByField | string | |
$restoredAtField | string | |
$allowEmpty | bool |