Class: module:models/Category

module:models/Category()

new module:models/Category()

Constructs a new Category. Document representing a category.

Source:

Members

(inner) categories :Array.<module:models/Category>

Array of subcategories. Can be empty.

Type:
Source:

(inner) description :String

The localized description of the category.

Type:
  • String
Source:

(inner) id :String

The id of the category.

Type:
  • String
Source:

(inner) image :String

The URL to the category image.

Type:
  • String
Source:

(inner) name :String

The localized name of the category.

Type:
  • String
Source:

(inner) page_description :String

The localized page description of the category.

Type:
  • String
Source:

(inner) page_keywords :String

The localized page keywords of the category.

Type:
  • String
Source:

(inner) page_title :String

The localized page title of the category.

Type:
  • String
Source:

(inner) parent_category_id :String

The id of the parent category.

Type:
  • String
Source:

(inner) thumbnail :String

The URL to the category thumbnail.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Category}

Constructs a Category from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/Category

Optional instance to populate.

Source:
Returns:

The populated Category instance.

Type
module:models/Category