ILIAS
release_4-3 Revision
|
Public Member Functions | |
ilSoapTestAdministration () | |
isAllowedCall ($sid, $active_id, $saveaction=true) | |
saveQuestion ($sid, $active_id, $question_id, $pass, $solution) | |
saveQuestionSolution ($sid, $active_id, $question_id, $pass, $solution) | |
Save the solution of a question. | |
getQuestionSolution ($sid, $active_id, $question_id, $pass) | |
Get the the answers of a given question and pass for a given user. | |
getTestUserData ($sid, $active_id) | |
get active user data | |
getPositionOfQuestion ($sid, $active_id, $question_id, $pass) | |
get active user data | |
getPreviousReachedPoints ($sid, $active_id, $question_id, $pass) | |
Returns the previous reached points in a given pass. | |
getNrOfQuestionsInPass ($sid, $active_id, $pass) | |
Get the number of questions in a given pass for a given user. | |
removeTestResults ($sid, $test_ref_id, $a_user_ids) | |
Remove test results for the chosen test and users. | |
getTestResults ($sid, $test_ref_id, $sum_only) | |
get results of test | |
Public Member Functions inherited from ilSoapAdministration | |
ilSoapAdministration ($use_nusoap=true) | |
__checkSession ($sid) | |
initErrorWriter () | |
Overwrite error handler. | |
__explodeSid ($sid) | |
__setMessage ($a_str) | |
__getMessage () | |
__appendMessage ($a_str) | |
__setMessageCode ($a_code) | |
__getMessageCode () | |
initAuth ($sid) | |
initIlias () | |
__initAuthenticationObject ($a_auth_mode=AUTH_LOCAL) | |
__raiseError ($a_message, $a_code) | |
getNIC ($sid) | |
get client information from current as xml result set | |
isFault ($object) | |
checkObjectAccess ($ref_id, $expected_type, $permission, $returnObject=false) | |
check access for ref id: expected type, permission, return object instance if returnobject is true | |
getInstallationInfoXML () | |
getClientInfoXML ($clientid) | |
getClientDetailsXML ($sid, $clientid) |
Private Member Functions | |
hasWritePermissionForTest ($active_id) |
Additional Inherited Members | |
Static Public Member Functions inherited from ilSoapAdministration | |
static | return_bytes ($val) |
calculate bytes from K,M,G modifiers e.g: 8M = 8 * 1024 * 1024 bytes | |
Data Fields inherited from ilSoapAdministration | |
$sauth = null | |
$error_method = null | |
Protected Attributes inherited from ilSoapAdministration | |
$soap_check = true |
Definition at line 35 of file class.ilSoapTestAdministration.php.
ilSoapTestAdministration::getNrOfQuestionsInPass | ( | $sid, | |
$active_id, | |||
$pass | |||
) |
Get the number of questions in a given pass for a given user.
string | $sid | Session ID |
long | $active_id | Active user ID |
integer | $pass | Test pass |
Definition at line 532 of file class.ilSoapTestAdministration.php.
References $lng, $pass, $result, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
ilSoapTestAdministration::getPositionOfQuestion | ( | $sid, | |
$active_id, | |||
$question_id, | |||
$pass | |||
) |
get active user data
string | $sid | Session ID |
long | $active_id | Active user ID |
integer | $question_id | Question ID |
integer | $pass | Test pass |
Definition at line 429 of file class.ilSoapTestAdministration.php.
References $lng, $pass, $result, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
ilSoapTestAdministration::getPreviousReachedPoints | ( | $sid, | |
$active_id, | |||
$question_id, | |||
$pass | |||
) |
Returns the previous reached points in a given pass.
string | $sid | Session ID |
long | $active_id | Active user ID |
integer | $question_id | Question ID |
integer | $pass | Test pass |
Definition at line 468 of file class.ilSoapTestAdministration.php.
References $lng, $pass, $result, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
ilSoapTestAdministration::getQuestionSolution | ( | $sid, | |
$active_id, | |||
$question_id, | |||
$pass | |||
) |
Get the the answers of a given question and pass for a given user.
string | $sid | Session ID |
long | $active_id | Active user ID |
integer | $question_id | Question ID |
integer | $pass | Test pass |
Definition at line 278 of file class.ilSoapTestAdministration.php.
References $pass, $result, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
ilSoapTestAdministration::getTestResults | ( | $sid, | |
$test_ref_id, | |||
$sum_only | |||
) |
get results of test
string | $sid | |
int | $test_ref_id | |
boolean | $sum_only |
Definition at line 624 of file class.ilSoapTestAdministration.php.
References $data, $ilLog, $ref_id, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObject\_getAllReferences(), ilObject\_isInTrash(), ilObject\_lookupObjectId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapTestAdministration::getTestUserData | ( | $sid, | |
$active_id | |||
) |
get active user data
string | $sid | |
long | $active_id |
Definition at line 351 of file class.ilSoapTestAdministration.php.
References $data, $lng, $result, $row, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
|
private |
Definition at line 42 of file class.ilSoapTestAdministration.php.
References $ref_id, $result, $row, and ilObject\_getAllReferences().
Referenced by isAllowedCall().
ilSoapTestAdministration::ilSoapTestAdministration | ( | ) |
Definition at line 37 of file class.ilSoapTestAdministration.php.
References ilSoapAdministration\ilSoapAdministration().
ilSoapTestAdministration::isAllowedCall | ( | $sid, | |
$active_id, | |||
$saveaction = true |
|||
) |
Definition at line 68 of file class.ilSoapTestAdministration.php.
References $client, $ilUser, $result, $row, and hasWritePermissionForTest().
Referenced by getNrOfQuestionsInPass(), getPositionOfQuestion(), getPreviousReachedPoints(), getQuestionSolution(), getTestUserData(), saveQuestion(), and saveQuestionSolution().
ilSoapTestAdministration::removeTestResults | ( | $sid, | |
$test_ref_id, | |||
$a_user_ids | |||
) |
Remove test results for the chosen test and users.
string | $sid | |
int | $test_ref_id | |
array | $a_user_ids |
Definition at line 568 of file class.ilSoapTestAdministration.php.
References $ilLog, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObject\_isInTrash(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapTestAdministration::saveQuestion | ( | $sid, | |
$active_id, | |||
$question_id, | |||
$pass, | |||
$solution | |||
) |
Definition at line 129 of file class.ilSoapTestAdministration.php.
References $GLOBALS, $pass, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), assQuestion\_instanciateQuestion(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().
ilSoapTestAdministration::saveQuestionSolution | ( | $sid, | |
$active_id, | |||
$question_id, | |||
$pass, | |||
$solution | |||
) |
Save the solution of a question.
string | $sid | Session ID |
long | $active_id | Active user ID |
integer | $question_id | Question ID |
integer | $pass | Test pass |
string | $solution | XML string containing the solution |
Definition at line 193 of file class.ilSoapTestAdministration.php.
References $GLOBALS, $pass, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), assQuestion\_instanciateQuestion(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and isAllowedCall().