Properties

dfdb

private \Qubus\Expressive\Database $dfdb

Methods

__construct

public __construct(\Qubus\Expressive\Database $dfdb): mixed

Parameters:

Parameter Type Description
$dfdb \Qubus\Expressive\Database

table

Retrieve the name of the attribute table for the specified object type.

private table(string $type): string

Parameters:

Parameter Type Description
$type string Type of object to get attribute table for (e.g. content, or product).

Return Value:

Table name or empty string if not exist.


getAttribute

public getAttribute(string $type, string $id): \App\Infrastructure\Services\Attribute\AttributeBag

Parameters:

Parameter Type Description
$type string
$id string

Throws:


saveAttribute

public saveAttribute(string $type, string $id, \App\Infrastructure\Services\Attribute\AttributeBag $attribute): void

Parameters:

Parameter Type Description
$type string
$id string
$attribute \App\Infrastructure\Services\Attribute\AttributeBag

Throws:


patchAttribute

public patchAttribute(string $type, string $id, callable $callback): \App\Infrastructure\Services\Attribute\AttributeBag

Parameters:

Parameter Type Description
$type string
$id string
$callback callable

Throws: