ActionReg

Source: ActionReg.js:40

This class stores information about one specific action done by the current user while playing
an activity.


Constructor

new ActionReg( type: string, +: string, +: string, ok: boolean, ): ActionReg

ActionReg constructor

Parameters

  • type (string) — Type of action (click, write, move, select...)
  • + (string) — source - Description of the object on which the action is done.
  • + (string) — dest - Description of the object that acts as a target of the action (used in pairings)
  • ok (boolean) — true if the action was OK, false, null or undefined otherwise

Instance Methods

$getXML(): external:jQuery

Provides the data associated with this action in XML format suitable for a
JClic Reports Server.

Returns

setProperties($xml: external:jQuery)

Fills this ActionReg with data provided in XML format

Parameters

  • $xml (external:jQuery) — The XML element to be processed, already wrapped as jQuery object

Instance Fields

type: string

The type of action (click, write, move, select...)

source: string

Description of the object on which the action was done

dest: string

Description of the object that has acted as a target of the action (used in pairings)

time: number

Time stamp taken when the action was done

isOk: boolean

true if the action was OK