Skip to content

BlameableInterface

Methods

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

Inherited methods

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