Skip to content
English
  • There are no suggestions because the search field is empty.

Wayfinder Destination Category Database Class

Rather than duplicate data, the WayfinderDestinationCategoryDatabase class holds details about different types of destination that may appear one or more times within a project. For example, a shopping mall may contain several shops of the same brand.

This class inherits and therefore includes all the methods and functions defined the standard wayfinder database base class.

The categories are grouped into a hierarchy structure of categories and sub-categories.

This class exports the following functions:

allCategories

function

Returns an instance of WayfinderDestinationCategoryDatabase which contains a flat list of all categories (top level and sub-categories) for easy access

Each record in the WayfinderDestinationCategoryDatabase contains the following properties:

description

property (r)

A description of the category

id

property (r)

The unique ID for this category

logo

property (r)

A URL representing a graphic related to this category

name

property (r)

The name of this category

parent_id

property (r)

The ID of the parent category or null if this is a main one. This field might not exist

subCategories

property (r)

An instance of WayfinderDestinationCategoryDatabase containing all the sub-categories under this category