Class ProductJson
Json representation of the Product AR model.
This is the interface of the Product AR model exposed through the JSON API.
- CFormModel
-
CBJsonModel
-
ProductJson
Package: RestApi\Objects
Author: Konstantinos Filios <konfilios@gmail.com>
Located at demo/models/json/ProductJson.php
Author: Konstantinos Filios <konfilios@gmail.com>
Located at demo/models/json/ProductJson.php
public
string[]
|
copyFrom(),
createFromMany(),
createFromOne(),
resolveObjectRecursively(),
toArray(),
validate()
|
public
integer
|
$id |
|
#
Product id. |
public
string
|
$title |
|
#
Product title. |
public
float
|
$price |
|
#
Product price. |
public
|
$manufacturer |
|
#
Manufacturer. |
public
|
$categories | array() |
#
Relevant categories. |