|
const | DIR = 'inventory_items' |
|
const | MAP |
|
const | TYPE = 'inventory_item' |
|
const | DIR = '' |
| All subclasses must redeclare this to match their REST directory (without container). More...
|
|
const | TYPE = '' |
| All subclasses must redeclare this to match their types. More...
|
|
const | MAP = [] |
|
const | PATCH = [] |
|
|
Api | $api |
|
Pool | $pool |
|
static null self | load ($caller, string $id, array $query=[]) |
|
static self[] | loadAll ($caller, string $path, array $query=[]) |
|
null AbstractEntity | _container () |
| The container/owner object, if any. More...
|
|
mixed | _get (string $field) |
| Lazy-loads missing fields. More...
|
|
void | _onDelete () |
|
void | _onSave () |
|
void | _reload (string $field) |
|
mixed | _hydrate (string $class, $item) |
| A factory that also hydrates / caches entities. More...
|
|
array | _select ($subject, callable $filter,... $args) |
| Magic method: selectField(callable $filter) More...
|
|
$this | _setData (array $data) |
| Clears all diffs and sets all data, hydrating mapped fields. More...
|
|
$this | _setField (string $field, $value) |
| Sets a value, hydrating if mapped, and clears the diff. More...
|
|
string | _dir () |
| The POST directory. More...
|
|
◆ MAP
Initial value:= [
'country_harmonized_system_codes' => [CHSCode::class]
]
◆ getCost()
◆ getCountryCodeOfOrigin()
magic string getCountryCodeOfOrigin |
( |
| ) |
|
◆ getCountryHarmonizedSystemCodes()
magic CHSCode [] getCountryHarmonizedSystemCodes |
( |
| ) |
|
◆ getCreatedAt()
magic string getCreatedAt |
( |
| ) |
|
◆ getHarmonizedSystemCode()
magic string getHarmonizedSystemCode |
( |
| ) |
|
◆ getProvinceCodeOfOrigin()
magic string getProvinceCodeOfOrigin |
( |
| ) |
|
◆ getSku()
◆ getUpdatedAt()
magic string getUpdatedAt |
( |
| ) |
|
◆ isRequiresShipping()
magic bool isRequiresShipping |
( |
| ) |
|
◆ isTracked()
◆ newCHSCode()
◆ setCost()
magic $this setCost |
( |
number |
$cost | ) |
|
◆ setCountryCodeOfOrigin()
magic $this setCountryCodeOfOrigin |
( |
string |
$code | ) |
|
◆ setCountryHarmonizedSystemCodes()
magic $this setCountryHarmonizedSystemCodes |
( |
CHSCode[] |
$codes | ) |
|
◆ setHarmonizedSystemCode()
magic $this setHarmonizedSystemCode |
( |
string |
$code | ) |
|
◆ setProvinceCodeOfOrigin()
magic $this setProvinceCodeOfOrigin |
( |
string |
$code | ) |
|
◆ setSku()
magic $this setSku |
( |
string |
$sku | ) |
|
◆ setTracked()
magic $this setTracked |
( |
string |
$tracked | ) |
|