Inheritance diagram for ilSoapUtils:
Collaboration diagram for ilSoapUtils:Public Member Functions | |
| ilSoapUtils () | |
| ignoreUserAbort () | |
| disableSOAPCheck () | |
| sendMail ($sid, $to, $cc, $bcc, $sender, $subject, $message, $attach) | |
| saveTempFileAsMediaObject ($sid, $name, $tmp_name) | |
| getMobsOfObject ($sid, $a_type, $a_id) | |
| saveQuestionResult ($sid, $user_id, $test_id, $question_id, $pass, $solution) | |
Definition at line 35 of file class.ilSoapUtils.php.
| ilSoapUtils::disableSOAPCheck | ( | ) |
Definition at line 47 of file class.ilSoapUtils.php.
{
$this->sauth->disableSOAPCheck();
}
| ilSoapUtils::getMobsOfObject | ( | $ | sid, | |
| $ | a_type, | |||
| $ | a_id | |||
| ) |
Definition at line 110 of file class.ilSoapUtils.php.
References ilSoapAdministration::__checkSession(), ilSoapAdministration::__raiseError(), and ilObjMediaObject::_getMobsOfObject().
{
if(!$this->__checkSession($sid))
{
return $this->__raiseError($this->sauth->getMessage(),$this->sauth->getMessageCode());
}
// Include main header
include_once './include/inc.header.php';
include_once "./content/classes/Media/class.ilObjMediaObject.php";
return ilObjMediaObject::_getMobsOfObject($a_type, $a_id);
}
Here is the call graph for this function:| ilSoapUtils::ignoreUserAbort | ( | ) |
Definition at line 42 of file class.ilSoapUtils.php.
{
ignore_user_abort();
}
| ilSoapUtils::ilSoapUtils | ( | ) |
Definition at line 37 of file class.ilSoapUtils.php.
References ilSoapAdministration::ilSoapAdministration().
{
parent::ilSoapAdministration();
}
Here is the call graph for this function:| ilSoapUtils::saveQuestionResult | ( | $ | sid, | |
| $ | user_id, | |||
| $ | test_id, | |||
| $ | question_id, | |||
| $ | pass, | |||
| $ | solution | |||
| ) |
Definition at line 123 of file class.ilSoapUtils.php.
References $GLOBALS, $query, $user_id, ilSoapAdministration::__checkSession(), ilSoapAdministration::__raiseError(), and ilObjTest::_getActiveTestUser().
{
if(!$this->__checkSession($sid))
{
return $this->__raiseError($this->sauth->getMessage(),$this->sauth->getMessageCode());
}
// Include main header
include_once './include/inc.header.php';
include_once "./assessment/classes/class.ilObjTest.php";
$active = ilObjTest::_getActiveTestUser($user_id, $test_id);
$ilDB = $GLOBALS['ilDB'];
if (($active->active_id > 0) && ($question_id > 0) && (strlen($pass) > 0))
{
$deletequery = sprintf("DELETE FROM tst_solutions WHERE active_fi = %s AND question_fi = %s AND pass = %s",
$ilDB->quote($active->active_id . ""),
$ilDB->quote($question_id . ""),
$ilDB->quote($pass . "")
);
$ilDB->query($deletequery);
}
$saved_solutions = FALSE;
for($i = 0; $i < count($solution); $i += 3)
{
$query = sprintf("INSERT INTO tst_solutions ".
"SET active_fi = %s, ".
"question_fi = %s, ".
"value1 = %s, ".
"value2 = %s, ".
"points = %s, ".
"pass = %s",
$ilDB->quote($active->active_id . ""),
$ilDB->quote($question_id . ""),
$ilDB->quote($solution[$i]),
$ilDB->quote($solution[$i+1]),
$ilDB->quote($solution[$i+2]),
$ilDB->quote($pass . "")
);
$saved_solutions = TRUE;
$ilDB->query($query);
}
return $saved_solutions;
}
Here is the call graph for this function:| ilSoapUtils::saveTempFileAsMediaObject | ( | $ | sid, | |
| $ | name, | |||
| $ | tmp_name | |||
| ) |
Definition at line 97 of file class.ilSoapUtils.php.
References ilSoapAdministration::__checkSession(), ilSoapAdministration::__raiseError(), and ilObjMediaObject::_saveTempFileAsMediaObject().
{
if(!$this->__checkSession($sid))
{
return $this->__raiseError($this->sauth->getMessage(),$this->sauth->getMessageCode());
}
// Include main header
include_once './include/inc.header.php';
include_once "./content/classes/Media/class.ilObjMediaObject.php";
return ilObjMediaObject::_saveTempFileAsMediaObject($name, $tmp_name);
}
Here is the call graph for this function:| ilSoapUtils::sendMail | ( | $ | sid, | |
| $ | to, | |||
| $ | cc, | |||
| $ | bcc, | |||
| $ | sender, | |||
| $ | subject, | |||
| $ | message, | |||
| $ | attach | |||
| ) |
Definition at line 52 of file class.ilSoapUtils.php.
References $ilLog, ilSoapAdministration::__checkSession(), and ilSoapAdministration::__raiseError().
{
if(!$this->__checkSession($sid))
{
return $this->__raiseError($this->sauth->getMessage(),$this->sauth->getMessageCode());
}
// Include main header
include_once './include/inc.header.php';
global $ilLog;
include_once './classes/class.ilMimeMail.php';
$mmail = new ilMimeMail();
$mmail->autoCheck(false);
$mmail->From($sender);
$mmail->To(explode(',',$to));
$mmail->Subject($subject);
$mmail->Body($message);
if($cc)
{
$mmail->Cc(explode(',',$cc));
}
if($bcc)
{
$mmail->Bcc(explode(',',$bcc));
}
if($attach)
{
$attachments = explode(',',$attach);
foreach ($attachments as $attachment)
{
$mmail->Attach($attachment);
}
}
$mmail->Send();
$ilLog->write('SOAP: sendMail(): '.$to.', '.$cc.', '.$bcc);
return true;
}
Here is the call graph for this function:
1.7.1