com-tecnick-tcexam-shared
[ class tree: com-tecnick-tcexam-shared ] [ index: com-tecnick-tcexam-shared ] [ all elements ]

Procedural File: tce_functions_test_stats.php

Source Location: /shared/code/tce_functions_test_stats.php



Page Details:

Statistical functions for test results.



Tags:

author:  Nicola Asuni
copyright:  Copyright © 2004-2008, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2004-06-10
license:  GNU General Public License








F_getQuestionTestStat [line 109]

void F_getQuestionTestStat( int $test_id, int $question_id)

Returns test data structure for selected question:

  • $data['right'] = number of right answers
  • $data['wrong'] = number of wrong answers
  • $data['unanswered'] = number of unanswered questions
  • $data['undisplayed'] = number of undisplayed questions




Parameters

int   $test_id   test ID
int   $question_id   question ID return $data
[ Top ]



F_getUserTestStat [line 179]

void F_getUserTestStat( int $test_id, $user_id, int $testuser_id)

Returns test data structure for selected user:

  • $data['all'] = total number of questions
  • $data['right'] = number of right answers for multiple-choice questions (score > 50% max points)
  • $data['wrong'] = number of wrong answers for multiple-choice questions (score <= 50% max points)
  • $data['textright'] = number of right answers for free-text questions (score > 50% max points)
  • $data['textwrong'] = number of wrong answers for free-text questions (score <= 50% max points)
  • $data['unanswered'] = total number of unanswered questions
  • $data['undisplayed'] = total number of undisplayed questions
  • $data['basic_score'] = basic points for each difficulty level of questions
  • $data['max_score'] = maximum test score
  • $data['score'] = user's score
  • $data['comment'] = user's test comment




Tags:



Parameters

int   $test_id   test ID
int   $testuser_id   user's test ID return array $data
   $user_id  
[ Top ]



F_lockUserTest [line 81]

void F_lockUserTest( int $test_id, int $user_id)

Lock the user's test.




Tags:



Parameters

int   $test_id   test ID
int   $user_id   user ID
[ Top ]



pdfLink [line 62]

string pdfLink( string $mode, int $test_id, [int $groupid = 0], [int $user_id = 0], [string $orderfield = ""], string $orderdir)

Returns an URL to open the PDF generator page.



Parameters

string   $mode   PDF mode (1=all users results, 2=questions stats, 3=detailed report for single user 4=all users details)
int   $test_id   test ID
int   $groupid   group ID
int   $user_id   user ID
string   $orderfield   table order field name
string   $orderdir   order direction (1, -1)
[ Top ]



Documentation generated on Fri, 05 Dec 2008 16:03:55 +0100 by phpDocumentor 1.4.1