// array( student_login => array( "added" =>array( "link"=>link, "name" => course name ), "deleted" =>array( "link"=>link, "name" => course name )  )  )
$notifications = array();
timelog("runtime_schedule_sum", TRUE);
while (list($paul_id, $steam_group_name) = each($paul_course_ids)) {
    timelog("runtime_schedule", TRUE);
    $info_part_paul = 0;
    $info_part_koala = 0;
    $info_part_db = 0;
    $info_part_todelete = 0;
    $info_bookings = 0;
    $soaperror = FALSE;
    timelog("runtime_get_participants", TRUE);
    $info_paul_requests++;
    try {
        paul_sync_log("PAUL_SYNC\tget_participants\t" . $paul_id, PAUL_SYNC_LOGLEVEL_INFO);
        $participants_paul = $paul_soap->get_participants((string) $paul_id);
        paul_sync_log(" runtime=" . timelog("runtime_get_participants"), PAUL_SYNC_LOGLEVEL_INFO, TRUE);
        // Append runtime
    } catch (Exception $ex) {
        paul_sync_log("PAUL_SYNC\tERROR\tget_participants\t" . $paul_id, PAUL_SYNC_LOGLEVEL_ERROR);
        $soaperror = TRUE;
    }
    if (!$soaperror) {
        timelog("runtime_schedule_participants", TRUE);
        $info_courses++;
        $info_part_paul = count($participants_paul);
        // Durchgef?hrte Kursbuchungen ermitteln
        $query = "SELECT * FROM " . PAUL_SYNC_TABLE_NAME . " WHERE course_id_paul = '" . $paul_id . "' AND status_paul = 1;";
        $info_mysql_requests++;
        $result = mysql_query($query);
        $old_bookings = array();
Exemplo n.º 2
0
<?php

require_once "../../etc/koala.def.php";
ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . PATH_CLASSES . PATH_SEPARATOR . PATH_CLASSES . "PEAR" . PATH_SEPARATOR . PATH_CLASSES . "PHPsTeam");
require_once PATH_CLASSES . "paul_soap.class.php";
$paul_client = new paul_soap();
// IMT-uid in person_no umwandeln
$person_no = $paul_client->get_person_no_by_uid("wilf");
echo "umgewandelte person_no: " . $person_no . "\n";
//zu Demonstrationszwecken der umgekehrte Weg
echo "UID zu person_no {$person_no}: " . $paul_client->get_uid_by_person_no($person_no) . "\n";
// person_no in person_id umwandeln
$person_id = $paul_client->get_person_id_by_person_no($person_no);
echo "umgewandelte Id: " . $person_id . "\n";
// mit person_id alle Kurse dieser Person holen
//$courses = $paul_client->get_all_courses_by_person('333096745539477'); //hat eine Vorlesung
//$courses = $paul_client->get_all_courses_by_person('333096745206094'); //hat mehrere Vorlesungen
//$courses = $paul_client->get_all_courses_by_person($person_id); //hat keine vorlesungen
//print_r($courses);
/*
foreach ($courses as $course)
{
	$infos = $paul_client->get_course_information($course);
		print_r($infos);
}
*/
///////////////////////////////////////////////////////////////////////////////////////////////////
$participants = $paul_client->get_participants('333115115949863');
//mehrere Teilnehmer
//$participants = $paul_client->get_participants('333143751484962'); //nur ein Teilnehmer
print_r($participants);