SoftDeleteInterface
- Full name: \Zemit\Mvc\Model\Interfaces\SoftDeleteInterface
Methods
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 |