- Full name:
\App\Infrastructure\Services\Attribute\PdoAttributeDataRepository - This class is marked as final and can't be subclassed
- This class implements:
\App\Infrastructure\Services\Attribute\AttributeRepository - This class is a Final class
Properties
dfdb
Methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$dfdb |
\Qubus\Expressive\Database |
table
Retrieve the name of the attribute table for the specified object type.
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
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: