[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/scorm/datamodels/ -> aicclib.php (summary)

(no description)

File Size: 568 lines (22 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 8 functions

  scorm_add_time()
  scorm_get_aicc_columns()
  scorm_forge_cols_regexp()
  scorm_parse_aicc()
  scorm_aicc_get_hacp_session()
  scorm_aicc_confirm_hacp_session()
  scorm_aicc_generate_simple_sco()
  get_scorm_default()

Functions
Functions that are not part of a class:

scorm_add_time($a, $b)   X-Ref
functions used by AICC packages.


scorm_get_aicc_columns($row, $mastername='system_id')   X-Ref
Take the header row of an AICC definition file
and returns sequence of columns and a pointer to
the sco identifier column.

param: string $row AICC header row
param: string $mastername AICC sco identifier column
return: mixed

scorm_forge_cols_regexp($columns, $remodule='(".*")   X-Ref
Given a colums array return a string containing the regular
expression to match the columns in a text row.

param: array $column The header columns
param: string $remodule The regular expression module for a single column
return: string

scorm_parse_aicc(&$scorm)   X-Ref
Sets up AICC packages
Called whenever package changes

param: object $scorm instance - fields are updated and changes saved into database
return: bool

scorm_aicc_get_hacp_session($scormid)   X-Ref
Given a scormid creates an AICC Session record to allow HACP

param: int $scormid - id from scorm table
return: string hacpsession

scorm_aicc_confirm_hacp_session($hacpsession)   X-Ref
Check the hacp_session for whether it is valid.

param: string $hacpsession The hacpsession value to check (optional). Normally leave this blank
return: mixed - false if invalid, otherwise returns record from scorm_aicc_session table.

scorm_aicc_generate_simple_sco($scorm)   X-Ref
generate a simple single activity AICC object
structure to wrap around and externally linked
AICC package URL

param: object $scorm package record

get_scorm_default(&$userdata, $scorm, $scoid, $attempt, $mode)   X-Ref
Sets up $userdata array and default values for AICC package.

param: stdClass $userdata an empty stdClass variable that should be set up with user values
param: object $scorm package record
param: string $scoid SCO Id
param: string $attempt attempt number for the user
param: string $mode scorm display mode type
return: array The default values that should be used for AICC package



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1