Basket implements Entity
Table of Contents
Interfaces
- Entity
Methods
- __construct() : mixed
- getFields() : array<string|int, mixed>
- Returns list of value names for this entity.
- getFieldTitle() : mixed
- getValue() : mixed
- Returns value by its name.
- hasAccess() : bool
- isLoaded() : bool
Methods
__construct()
public
__construct(mixed $basketItem[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $basketItem : mixed
- $options : array<string|int, mixed> = []
getFields()
Returns list of value names for this entity.
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getFieldTitle()
public
getFieldTitle(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
getValue()
Returns value by its name.
public
getValue(string $name) : mixed
Parameters
- $name : string
hasAccess()
public
hasAccess(int $userId) : bool
Parameters
- $userId : int
Tags
Return values
boolisLoaded()
public
isLoaded() : bool