Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
 All Data Structures Namespaces Files Functions Variables
search.js File Reference

Functions

function init (dat, bid, page)
 
function getSearch ()
 
function newSearch ()
 
function buildTables (data)
 
function cleanText (txt)
 

Variables

var data
 
var aside
 
var booklet_id
 
var page_num
 
var toCheck = new Array("firstname", "middlename", "alternatename", "lastname", "email", "id", "username")
 

Function Documentation

function buildTables (   data)

This function builds the result tables to be displayed of the searched people.

function cleanText (   txt)

Rids the given string of " characters.

function getSearch ( )

Retrieves the input from the input field and lower cases everything.

function init (   dat,
  bid,
  page 
)

Sets up the inner

and assigns student data array to a variable that will be used by other functions in this file.
function newSearch ( )

Searches through the array for a student with input.

Variable Documentation

var aside
var booklet_id
var data
var page_num
var toCheck = new Array("firstname", "middlename", "alternatename", "lastname", "email", "id", "username")

This variable checks the following fields for the student, thus these are the searchable terms. Note: id is the unique key in the DB, thus not included here? or use idnumber? not sure which one to use.