content

Namespace

content

Description:
  • Functionality related to course content
Source:

Classes

ContentModule
ContentTree

Methods

(static) exports.extractAssetIds(schema, data) → {Array.<String>}

Description:
  • Extracts unique asset IDs from a content document by walking its schema for Asset-type fields and collecting non-URL values.
Source:
Parameters:
Name Type Description
schema Object The built Schema instance (must have a walk method)
data Object The data object to search for asset values
Returns:
Unique array of asset IDs found in the data
Type
Array.<String>