Overview

Packages

  • Components
  • Internals
    • AR
  • RestApi
    • Objects
    • Services

Classes

  • ManufacturerJson
  • ProductCategoryJson
  • ProductJson
  • ProductQueryJson
  • Overview
  • Package
  • Class
  • Tree
  • Todo

Class ProductJson

Json representation of the Product AR model.

This is the interface of the Product AR model exposed through the JSON API.

CFormModel
Extended by CBJsonModel
Extended by ProductJson
Package: RestApi\Objects
Author: Konstantinos Filios <konfilios@gmail.com>
Located at demo/models/json/ProductJson.php
Methods summary
public string[]
# getAttributeTypes( )

Types of non-scalar members.

Types of non-scalar members.

Returns

string[]

Overrides

CBJsonModel::getAttributeTypes()
Methods inherited from CBJsonModel
copyFrom(), createFromMany(), createFromOne(), resolveObjectRecursively(), toArray(), validate()
Properties summary
public integer $id
#

Product id.

Product id.

public string $title
#

Product title.

Product title.

public float $price
#

Product price.

Product price.

public ManufacturerJson $manufacturer
#

Manufacturer.

Manufacturer.

public ProductCategoryJson[] $categories array()
#

Relevant categories.

Relevant categories.

Bogo Yii Json Service API documentation generated by ApiGen 2.8.0