ModelInterface
- Full name:
\PhalconKit\Mvc\ModelInterface - Parent interfaces:
\PhalconKit\Mvc\Model\Interfaces\AttributeInterface, \PhalconKit\Mvc\Model\Interfaces\BehaviorInterface, \PhalconKit\Mvc\Model\Interfaces\BlameableInterface, \PhalconKit\Mvc\Model\Interfaces\EagerLoadInterface, \PhalconKit\Mvc\Model\Interfaces\ExposeInterface, \PhalconKit\Mvc\Model\Interfaces\HashInterface, \PhalconKit\Mvc\Model\Interfaces\IdentityInterface, \PhalconKit\Mvc\Model\Interfaces\InstanceInterface, \PhalconKit\Mvc\Model\Interfaces\JsonInterface, \PhalconKit\Mvc\Model\Interfaces\LocaleInterface, \PhalconKit\Mvc\Model\Interfaces\MetaDataInterface, \PhalconKit\Mvc\Model\Interfaces\OptionsInterface, \PhalconKit\Mvc\Model\Interfaces\PositionInterface, \PhalconKit\Mvc\Model\Interfaces\RelationshipInterface, \PhalconKit\Mvc\Model\Interfaces\ReplicationInterface, \PhalconKit\Mvc\Model\Interfaces\SecurityInterface, \PhalconKit\Mvc\Model\Interfaces\SlugInterface, \PhalconKit\Mvc\Model\Interfaces\SnapshotInterface, \PhalconKit\Mvc\Model\Interfaces\SoftDeleteInterface, \PhalconKit\Mvc\Model\Interfaces\ValidateInterface, ModelInterface
Inherited methods
genericValidation
public genericValidation(?\PhalconKit\Filter\Validation $validator = null): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | ?\PhalconKit\Filter\Validation | |
addNotEmptyValidation
public addNotEmptyValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = false): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addPresenceValidation
public addPresenceValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addUnsignedIntValidation
public addUnsignedIntValidation(\PhalconKit\Filter\Validation $validator, array|string $field = 'id', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addUnsignedBigIntValidation
public addUnsignedBigIntValidation(\PhalconKit\Filter\Validation $validator, array|string $field = 'id', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addNumberValidation
public addNumberValidation(\PhalconKit\Filter\Validation $validator, array|string $field, int $min, int $max, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$min | int | |
$max | int | |
$allowEmpty | bool | |
addStringLengthValidation
public addStringLengthValidation(\PhalconKit\Filter\Validation $validator, array|string $field, int $minChar, int $maxChar = 255, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$minChar | int | |
$maxChar | int | |
$allowEmpty | bool | |
addInclusionInValidation
public addInclusionInValidation(\PhalconKit\Filter\Validation $validator, array|string $field, array $domainList = [], bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$domainList | array | |
$allowEmpty | bool | |
addBooleanValidation
public addBooleanValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addInclusionValidation
public addInclusionValidation(\PhalconKit\Filter\Validation $validator, array|string $field, array $domain = [], bool $allowEmpty = true, bool $strict = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$domain | array | |
$allowEmpty | bool | |
$strict | bool | |
addUniquenessValidation
public addUniquenessValidation(\PhalconKit\Filter\Validation $validator, string|array $field, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | string|array | |
$allowEmpty | bool | |
addEmailValidation
public addEmailValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addDateValidation
public addDateValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, string $format = Column::DATE_FORMAT): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
$format | string | |
addDateTimeValidation
public addDateTimeValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, string $format = Column::DATETIME_FORMAT): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
$format | string | |
addJsonValidation
public addJsonValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true, int $depth = 512, int $flags): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
$depth | int | |
$flags | int | |
addColorValidation
public addColorValidation(\PhalconKit\Filter\Validation $validator, array|string $field, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | array|string | |
$allowEmpty | bool | |
addIdValidation
public addIdValidation(\PhalconKit\Filter\Validation $validator, string $field = 'id'): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | string | |
addPositionValidation
public addPositionValidation(\PhalconKit\Filter\Validation $validator, string $field = 'position', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | string | |
$allowEmpty | bool | |
addSoftDeleteValidation
public addSoftDeleteValidation(\PhalconKit\Filter\Validation $validator, string $field = 'deleted', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | string | |
$allowEmpty | bool | |
addUuidValidation
public addUuidValidation(\PhalconKit\Filter\Validation $validator, string $field = 'uuid', bool $allowEmpty = false): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$field | string | |
$allowEmpty | bool | |
addCrudValidation
public addCrudValidation(\PhalconKit\Filter\Validation $validator, string $userIdField, string $dateField, bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$userIdField | string | |
$dateField | string | |
$allowEmpty | bool | |
addCreatedValidation
public addCreatedValidation(\PhalconKit\Filter\Validation $validator, string $createdByField = 'createdBy', string $createdAtField = 'createdAt', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$createdByField | string | |
$createdAtField | string | |
$allowEmpty | bool | |
addUpdatedValidation
public addUpdatedValidation(\PhalconKit\Filter\Validation $validator, string $updatedByField = 'updatedBy', string $updatedAtField = 'updatedAt', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$updatedByField | string | |
$updatedAtField | string | |
$allowEmpty | bool | |
addDeletedValidation
public addDeletedValidation(\PhalconKit\Filter\Validation $validator, string $deletedField = 'deletedBy', string $dateField = 'deletedAt', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$deletedField | string | |
$dateField | string | |
$allowEmpty | bool | |
addRestoredValidation
public addRestoredValidation(\PhalconKit\Filter\Validation $validator, string $restoredByField = 'restoredBy', string $restoredAtField = 'restoredAt', bool $allowEmpty = true): \PhalconKit\Filter\Validation
Parameters:
| Parameter | Type | Description |
$validator | \PhalconKit\Filter\Validation | |
$restoredByField | string | |
$restoredAtField | string | |
$allowEmpty | bool | |
initializeSoftDelete
public initializeSoftDelete(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setSoftDeleteBehavior
public setSoftDeleteBehavior(\PhalconKit\Mvc\Model\Behavior\SoftDelete $softDeleteBehavior): void
Parameters:
| Parameter | Type | Description |
$softDeleteBehavior | \PhalconKit\Mvc\Model\Behavior\SoftDelete | |
getSoftDeleteBehavior
public getSoftDeleteBehavior(): \PhalconKit\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 | |
initializeSnapshot
public initializeSnapshot(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setSnapshotBehavior
public setSnapshotBehavior(\PhalconKit\Mvc\Model\Behavior\Snapshot $snapshotBehavior): void
Parameters:
| Parameter | Type | Description |
$snapshotBehavior | \PhalconKit\Mvc\Model\Behavior\Snapshot | |
getSnapshotBehavior
public getSnapshotBehavior(): \PhalconKit\Mvc\Model\Behavior\Snapshot
hasChangedCallback
public hasChangedCallback(callable $callback, bool $anyField = true): \Closure
Parameters:
| Parameter | Type | Description |
$callback | callable | |
$anyField | bool | |
initializeSlug
public initializeSlug(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setSlugBehavior
public setSlugBehavior(\PhalconKit\Mvc\Model\Behavior\Transformable $slugBehavior): void
Parameters:
| Parameter | Type | Description |
$slugBehavior | \PhalconKit\Mvc\Model\Behavior\Transformable | |
getSlugBehavior
public getSlugBehavior(): \PhalconKit\Mvc\Model\Behavior\Transformable
initializeSecurity
public initializeSecurity(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setSecurityBehavior
public setSecurityBehavior(\PhalconKit\Mvc\Model\Behavior\Security $securityBehavior): void
Parameters:
| Parameter | Type | Description |
$securityBehavior | \PhalconKit\Mvc\Model\Behavior\Security | |
getSecurityBehavior
public getSecurityBehavior(): \PhalconKit\Mvc\Model\Behavior\Security
getReplicationLag
public static getReplicationLag(): ?int
setReplicationLag
public static setReplicationLag(?int $replicationLag = null): void
- This method is static. Parameters:
| Parameter | Type | Description |
$replicationLag | ?int | |
getReplicationReadyAt
public static getReplicationReadyAt(): ?int
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
public setKeepMissingRelated(array $keepMissingRelated): void
Parameters:
| Parameter | Type | Description |
$keepMissingRelated | array | |
public getKeepMissingRelated(): array
public getKeepMissingRelatedAlias(string $alias): bool
Parameters:
| Parameter | Type | Description |
$alias | string | |
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 | |
public getDirtyRelated(): array
public setDirtyRelated(array $dirtyRelated): void
Parameters:
| Parameter | Type | Description |
$dirtyRelated | array | |
public getDirtyRelatedAlias(string $alias): mixed
Parameters:
| Parameter | Type | Description |
$alias | string | |
public setDirtyRelatedAlias(string $alias, mixed $value): void
Parameters:
| Parameter | Type | Description |
$alias | string | |
$value | mixed | |
public hasDirtyRelated(): bool
public hasDirtyRelatedAlias(string $alias): bool
Parameters:
| Parameter | Type | Description |
$alias | string | |
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, array $relatedRecords, \Phalcon\Support\Collection\CollectionInterface $visited): ?bool
Parameters:
| Parameter | Type | Description |
$relation | \Phalcon\Mvc\Model\RelationInterface | |
$relatedRecords | array | |
$visited | \Phalcon\Support\Collection\CollectionInterface | |
postSaveRelatedThroughAfter
public postSaveRelatedThroughAfter(\Phalcon\Mvc\Model\RelationInterface $relation, array $relatedRecords, \Phalcon\Support\Collection\CollectionInterface $visited): ?bool
Parameters:
| Parameter | Type | Description |
$relation | \Phalcon\Mvc\Model\RelationInterface | |
$relatedRecords | array | |
$visited | \Phalcon\Support\Collection\CollectionInterface | |
findFirstByPrimaryKeys
public findFirstByPrimaryKeys(array $data, ?string $modelClass): \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
Parameters:
| Parameter | Type | Description |
$data | array | |
$modelClass | ?string | |
getEntityFromData
public getEntityFromData(array $data, array $configuration = []): \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
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 | |
public relatedToArray(?array $columns = null, bool $useGetter = true): array
Parameters:
| Parameter | Type | Description |
$columns | ?array | |
$useGetter | bool | |
initializePosition
public initializePosition(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setPositionBehavior
public setPositionBehavior(\PhalconKit\Mvc\Model\Behavior\Position $positionBehavior): void
Parameters:
| Parameter | Type | Description |
$positionBehavior | \PhalconKit\Mvc\Model\Behavior\Position | |
getPositionBehavior
public getPositionBehavior(): \PhalconKit\Mvc\Model\Behavior\Position
reorder
public reorder(?int $position = null, ?string $positionField = null): bool
Parameters:
| Parameter | Type | Description |
$position | ?int | |
$positionField | ?string | |
initializeOptions
public initializeOptions(): void
getOptionsManager
public getOptionsManager(): \PhalconKit\Support\Options\ManagerInterface
setOptionsManager
public setOptionsManager(\PhalconKit\Support\Options\ManagerInterface $optionsManager): void
Parameters:
| Parameter | Type | Description |
$optionsManager | \PhalconKit\Support\Options\ManagerInterface | |
getColumnMap
public getColumnMap(): ?array
getPrimaryKeys
public getPrimaryKeys(): array
getPrimaryKeysValues
public getPrimaryKeysValues(): array
_
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 | |
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 | |
loadInstance
public static loadInstance(): static
getIdentityService
public getIdentityService(): \PhalconKit\Identity\Manager
isLoggedIn
public isLoggedIn(bool $as = false): bool
Parameters:
| Parameter | Type | Description |
$as | bool | |
isLoggedInAs
public isLoggedInAs(): bool
getCurrentUser
public getCurrentUser(bool $as = false): ?\PhalconKit\Models\Interfaces\UserInterface
Parameters:
| Parameter | Type | Description |
$as | bool | |
getCurrentUserAs
public getCurrentUserAs(): ?\PhalconKit\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 | |
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 | |
expose
public expose(?array $columns = null, ?bool $expose = null, ?bool $protected = null): array
Parameters:
| Parameter | Type | Description |
$columns | ?array | |
$expose | ?bool | |
$protected | ?bool | |
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): array
- This method is static. Parameters:
| Parameter | Type | Description |
$arguments | array | |
firstWith
public static firstWith(array $arguments): ?\Phalcon\Mvc\ModelInterface
- This method is static. Parameters:
| Parameter | Type | Description |
$arguments | array | |
load
public load(array $arguments): ?\Phalcon\Mvc\ModelInterface
Parameters:
| Parameter | Type | Description |
$arguments | array | |
getParametersFromArguments
public static getParametersFromArguments(array& $arguments): mixed
- This method is static. Parameters:
| Parameter | Type | Description |
$arguments | array | |
initializeUpdated
public initializeUpdated(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setUpdatedBehavior
public setUpdatedBehavior(\PhalconKit\Mvc\Model\Behavior\Transformable $updatedBehavior): void
Parameters:
| Parameter | Type | Description |
$updatedBehavior | \PhalconKit\Mvc\Model\Behavior\Transformable | |
getUpdatedBehavior
public getUpdatedBehavior(): \PhalconKit\Mvc\Model\Behavior\Transformable
initializeRestored
public initializeRestored(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setRestoredBehavior
public setRestoredBehavior(\PhalconKit\Mvc\Model\Behavior\Transformable $restoredBehavior): void
Parameters:
| Parameter | Type | Description |
$restoredBehavior | \PhalconKit\Mvc\Model\Behavior\Transformable | |
getRestoredBehavior
public getRestoredBehavior(): \PhalconKit\Mvc\Model\Behavior\Transformable
initializeDeleted
public initializeDeleted(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setDeletedBehavior
public setDeletedBehavior(\PhalconKit\Mvc\Model\Behavior\Transformable $deletedBehavior): void
Parameters:
| Parameter | Type | Description |
$deletedBehavior | \PhalconKit\Mvc\Model\Behavior\Transformable | |
getDeletedBehavior
public getDeletedBehavior(): \PhalconKit\Mvc\Model\Behavior\Transformable
initializeCreated
public initializeCreated(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setCreatedBehavior
public setCreatedBehavior(\PhalconKit\Mvc\Model\Behavior\Transformable $createdBehavior): void
Parameters:
| Parameter | Type | Description |
$createdBehavior | \PhalconKit\Mvc\Model\Behavior\Transformable | |
getCreatedBehavior
public getCreatedBehavior(): \PhalconKit\Mvc\Model\Behavior\Transformable
getDateCallback
public getDateCallback(string $format, ?int $timestamp = null): \Closure
Parameters:
| Parameter | Type | Description |
$format | string | |
$timestamp | ?int | |
initializeBlameable
public initializeBlameable(?array $options = null): void
Parameters:
| Parameter | Type | Description |
$options | ?array | |
setBlameableBehavior
public setBlameableBehavior(\PhalconKit\Mvc\Model\Behavior\Blameable $blameableBehavior): void
Parameters:
| Parameter | Type | Description |
$blameableBehavior | \PhalconKit\Mvc\Model\Behavior\Blameable | |
getBlameableBehavior
public getBlameableBehavior(): \PhalconKit\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 | |
addBehavior
public addBehavior(\Phalcon\Mvc\Model\BehaviorInterface $behavior): void
Parameters:
| Parameter | Type | Description |
$behavior | \Phalcon\Mvc\Model\BehaviorInterface | |
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 | |
removeBehavior
public removeBehavior(string $behaviorName): void
Parameters:
| Parameter | Type | Description |
$behaviorName | string | |
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 | |