Inheritance diagram for ilSoapUtils:
Collaboration diagram for ilSoapUtils:Public Member Functions | |
| ilSoapUtils () | |
| ignoreUserAbort () | |
| disableSOAPCheck () | |
| sendMail ($sid, $to, $cc, $bcc, $sender, $subject, $message, $attach) | |
| 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::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 95 of file class.ilSoapUtils.php.
References $GLOBALS, $query, $user_id, 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';
$ilDB = $GLOBALS['ilDB'];
for($i = 0; $i < count($solution); $i += 3)
{
if (($user_id > 0) && ($test_id > 0) && ($question_id > 0) && (strlen($pass) > 0))
{
$deletequery = sprintf("DELETE FROM tst_solutions WHERE user_fi = %s AND test_fi = %s AND question_fi = %s AND pass = %s",
$ilDB->quote($user_id . ""),
$ilDB->quote($test_id . ""),
$ilDB->quote($question_id . ""),
$ilDB->quote($pass . "")
);
$ilDB->query($deletequery);
}
$query = sprintf("INSERT INTO tst_solutions ".
"SET user_fi = %s, ".
"test_fi = %s, ".
"question_fi = %s, ".
"value1 = %s, ".
"value2 = %s, ".
"points = %s, ".
"pass = %s",
$ilDB->quote($user_id . ""),
$ilDB->quote($test_id . ""),
$ilDB->quote($question_id . ""),
$ilDB->quote($solution[$i]),
$ilDB->quote($solution[$i+1]),
$ilDB->quote($solution[$i+2]),
$ilDB->quote($pass . "")
);
$ilDB->query($query);
}
return true;
}
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';
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