Squiz Matrix
4.12.2
|
Public Member Functions | |
Online_Quiz_Submission ($assetid=0) | |
saveAttributes ($dont_run_updated=FALSE) | |
getIP () | |
setIP ($ip) | |
getScore () | |
setScore ($score) | |
getUserDetailsAnswer ($asset_id) | |
setUserDetailsAnswer ($asset_id, $answer) | |
getQuizAnswer ($asset_id) | |
setQuizAnswer ($asset_id, $answer) | |
getUserDetailsAnswers () | |
getQuizAnswers () | |
getSummary ($incl_user_details=TRUE, $incl_quiz_responses=TRUE) | |
setUserDetailsQuestion ($asset_id, $question_name) | |
setQuizQuestion ($asset_id, $question_name) | |
getUserDetailsQuestions () | |
getQuizQuestions () | |
getAvailableKeywords () | |
getKeywordReplacement ($keyword) | |
printBody () | |
getSummaryUserDetails () | |
getSummaryQuizResponse () | |
getSummaryPoints () | |
Public Member Functions inherited from Asset | |
Asset ($assetid=0) | |
create (Array &$link) | |
load ($assetid) | |
_loadDataPaths () | |
reload () | |
canDelete () | |
delete ($release_lock=TRUE, $check_locked=TRUE) | |
useSystemVersion () | |
loadSystemVersion () | |
saveSystemVersion () | |
clearSystemVersion () | |
revertToSystemVersion () | |
revertNoticeLinksToSystemVersion () | |
_updated ($update_parents=TRUE) | |
type () | |
getTypeAncestors ($include_asset=TRUE) | |
incrementVersion ($number='micro', $update_parents=TRUE) | |
getLanguages () | |
setLanguages (Array $languages) | |
setCharset ($charset) | |
setForceSecure ($force_secure) | |
remapAssetids (Array $map) | |
morph ($new_type_code) | |
_morphCleanup ($new_type_code) | |
onRequestKeywords (Asset $broadcaster, Array $vars=Array()) | |
canClone () | |
cloneComponents (Asset $clone, Array $components, $override=FALSE) | |
cloneComponentsAdditional (Asset $clone, Array $components) | |
cloneLinks (Asset $clone) | |
getStatus () | |
getAvailableStatii () | |
getStatusDescription () | |
processStatusChange ($new_status, $update_parents=TRUE, $run_updated=TRUE) | |
setDate ($date_type, $time=NULL, $userid=NULL) | |
lockTypes () | |
canForceablyAcquireLock ($lock_type) | |
getEditingLocks ($keywords) | |
_getAllowedLinks () | |
createLink (Asset $minor, $link_type, $value='', $sort_order=NULL, $dependant='0', $exclusive='0', $moving=FALSE, $locked=0) | |
prepareLink (Asset $asset, $side_of_link, &$link_type, &$value, &$sort_order, &$dependant, &$exclusive) | |
canCreateLink (Asset $minor, $link_type, $exclusive) | |
canMoveLink (Asset $minor, Asset $old_major, $link_type) | |
describeLink ($linkid) | |
isDeletableLink ($linkid) | |
canDeleteLink ($linkid) | |
deleteLink ($linkid, $check_locked=TRUE) | |
linksUpdated () | |
canCloneLink () | |
saveAttributes ($dont_run_updated=FALSE, $log_message=TRUE) | |
setAttrValue ($name, $value) | |
attr ($name) | |
& | attrByRef ($name) |
getAttribute ($name, $mute_errors=FALSE) | |
getAssetKeywords ($descriptions=FALSE) | |
getAvailableKeywords () | |
getKeywordReplacement ($keyword) | |
getAssetWebPathKeywordReplacement () | |
getCustomKeywordReplacements ($keywords=Array(), $invoke_backend=FALSE) | |
processCustomKeywords ($keywords=Array()) | |
getContent () | |
setContent () | |
getEffectiveLastUpdatedTime ($assetids) | |
readAccess (Array $assetids=Array()) | |
writeAccess ($lock_type='', Array $assetids=Array(), $only_workflow=TRUE) | |
adminAccess ($lock_type='', Array $assetids=Array()) | |
backendAccess () | |
liveEditAccess ($lock_type) | |
canliveEdit ($lock_type) | |
effectiveUnrestricted () | |
checkAccess ($perm, $lock_type, Array $assetids=Array(), $only_workflow=TRUE) | |
accessEffective () | |
permissionsUpdated () | |
printFrontend () | |
printFrontendAsset (Asset $asset, $design=NULL) | |
getValidProtocols () | |
printHead () | |
printBody () | |
getCurrentPaintLayoutName () | |
getCurrentDesignName () | |
printBodyWithPaintLayout ($layout_id='') | |
initLimbo () | |
printLimbo () | |
paintBackend (Backend_Outputter $o) | |
getPrefix () | |
processBackend (Backend_Outputter $o, Array &$link) | |
getEI () | |
getEditFns () | |
getBackendHref ($screen='', $backend_page=TRUE) | |
getURL ($base_url=NULL, $ignore_rollback=FALSE, $base_contextid=NULL) | |
getURLs () | |
getHref ($base_url=NULL, $ignore_rollback=FALSE) | |
getWebDataPath () | |
getWebPaths () | |
saveWebPaths ($paths, $auto_add_remaps=TRUE) | |
getLookups ($field='') | |
getDesignLookups () | |
getLookupValues ($inherited=NULL, $prefix='', $like_search=TRUE, $ignore_override=FALSE) | |
deleteLookupValue ($layout_name, $layout_value) | |
setPaintLayouts ($layouts) | |
updateLookups ($auto_add_remaps=TRUE) | |
setLookupValues (Array $values) | |
getAssetStatusDescriptionKeywordReplacement () | |
getAssetStatusColourKeywordReplacement () | |
replaceKeywordsInString ($string) | |
fastTrack ($tasks) | |
unFastTrack ($tasks) | |
shouldFastTrack ($task, $assetid=NULL) | |
getFaskTrackedTaskAssetids ($task) | |
getDependantParentsURL () | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Additional Inherited Members | |
Data Fields inherited from Asset | |
$id = 0 | |
$version = '' | |
$name = '' | |
$short_name = '' | |
$status | |
$languages = '' | |
$charset = '' | |
$force_secure = '0' | |
$created | |
$created_userid | |
$updated | |
$updated_userid | |
$published | |
$published_userid | |
$status_changed | |
$status_changed_userid | |
$_is_cacheable = FALSE | |
$vars = Array() | |
$_available_keywords = Array() | |
$data_path_suffix = '' | |
$data_path = '' | |
$data_path_public = '' | |
$_ser_attrs = FALSE | |
Protected Member Functions inherited from Asset | |
_preCreateCheck (Array &$link) | |
_createAdditional (Array &$link) | |
_abortCreate ($trigger_level_changed=FALSE, $linkid=0) | |
_loadVars () | |
_getName ($short_name=FALSE, $contextid=NULL) | |
_getKeywordReplacement ($keyword) | |
_checkPermissionAccess ($perm, $assetids=Array(), $only_workflow=TRUE) | |
makeAndSaveInitialWebPath ($path, $parent_link=NULL) | |
Definition at line 28 of file online_quiz_submission.inc.
getAvailableKeywords | ( | ) |
Return the keywords for this asset type.
This function is called in asset-listing situations like the asset listing, search page etc The return value is in the form:
Array( 'name' => 'description' => 'the asset name', );
Definition at line 390 of file online_quiz_submission.inc.
getIP | ( | ) |
Returns the IP address of this submission
Definition at line 73 of file online_quiz_submission.inc.
getKeywordReplacement | ( | $keyword | ) |
Get bodycopy keyword replacement
Provides a mechanism for providing keyword replacement functions by looking up the function named 'getKeywordNameKeywordReplacement' so an asset wishing to add support for 'best_ever' custom keyword should implement a function getBestEverKeywordReplacement() which returns a replacement string
string | $keyword | Keyword to find a replacement for |
Definition at line 426 of file online_quiz_submission.inc.
getQuizAnswer | ( | $asset_id | ) |
Obtain the answer logged for a Quiz Question
string | $asset_id | The asset ID of an Online Quiz Question |
Definition at line 202 of file online_quiz_submission.inc.
getQuizAnswers | ( | ) |
Obtain all logged Online Quiz answers
Definition at line 259 of file online_quiz_submission.inc.
getQuizQuestions | ( | ) |
Obtain all question names logged for Online Quiz Questions
Definition at line 369 of file online_quiz_submission.inc.
getScore | ( | ) |
Returns the score of this submission
Definition at line 112 of file online_quiz_submission.inc.
getSummary | ( | $incl_user_details = TRUE , |
|
$incl_quiz_responses = TRUE |
|||
) |
Obtain a summary of question names and answers for the User Details Form and Online Quiz
boolean | $incl_user_details | include summary for User Details Form? |
boolean | $incl_quiz_responses | include summary for Online Quiz? |
Definition at line 277 of file online_quiz_submission.inc.
getSummaryPoints | ( | ) |
Get summary of points in html format
Definition at line 624 of file online_quiz_submission.inc.
getSummaryQuizResponse | ( | ) |
Get summary of quiz question in html format
Definition at line 595 of file online_quiz_submission.inc.
getSummaryUserDetails | ( | ) |
Get summary of user details form in html format
Definition at line 565 of file online_quiz_submission.inc.
getUserDetailsAnswer | ( | $asset_id | ) |
getUserDetailsAnswers | ( | ) |
Obtain all answers logged for the User Details Form
Definition at line 244 of file online_quiz_submission.inc.
getUserDetailsQuestions | ( | ) |
Obtain all question names logged for the User Details Form
Definition at line 356 of file online_quiz_submission.inc.
Online_Quiz_Submission | ( | $assetid = 0 | ) |
Constructor
int | $assetid | the asset id to be loaded |
Definition at line 38 of file online_quiz_submission.inc.
printBody | ( | ) |
Print the body of this asset
Definition at line 548 of file online_quiz_submission.inc.
saveAttributes | ( | $dont_run_updated = FALSE | ) |
Save attributes set with setAttrValue to the database
boolean | $dont_run_updated | if true this->_updated() won't be run (THIS IS ONLY EVER CALLED FROM Asset::create()) |
Definition at line 56 of file online_quiz_submission.inc.
setIP | ( | $ip | ) |
Sets the IP address of this submission
string | $ip | the ip of the user who submitted |
Definition at line 90 of file online_quiz_submission.inc.
setQuizAnswer | ( | $asset_id, | |
$answer | |||
) |
Log an answer which originated from an Online Quiz Question
string | $asset_id | The asset ID of an Online Quiz Question |
string | $answer | The answer to be assigned |
Definition at line 225 of file online_quiz_submission.inc.
setQuizQuestion | ( | $asset_id, | |
$question_name | |||
) |
Log the question name of an Online Quiz Question
string | $asset_id | The asset ID of an Online Quiz Question |
string | $question_name | The question name to be assigned |
Definition at line 337 of file online_quiz_submission.inc.
setScore | ( | $score | ) |
Sets the score of this submission
string | $score |
Definition at line 132 of file online_quiz_submission.inc.
setUserDetailsAnswer | ( | $asset_id, | |
$answer | |||
) |
setUserDetailsQuestion | ( | $asset_id, | |
$question_name | |||
) |