report/ActionReg. ActionReg

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

Constructor

new ActionReg(type, +, +, ok)

ActionReg constructor

Parameters:
NameTypeDescription
typestring

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)

okboolean

true if the action was OK, false, null or undefined otherwise

Members

dest :string

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

Type:
  • string

isOk :boolean

true if the action was OK

Type:
  • boolean

source :string

Description of the object on which the action was done

Type:
  • string

time :number

Time stamp taken when the action was done

Type:
  • number

type :string

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

Type:
  • string

Methods

$getXML() → {external:jQuery}

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

Returns:
Type: 
external:jQuery

setProperties($xml)

Fills this ActionReg with data provided in XML format

Parameters:
NameTypeDescription
$xmlexternal:jQuery

The XML element to be processed, already wrapped as jQuery object