Exemplo n.º 1
0
 $result = $cache->call("lms_steam::search_user", $_REQUEST["pattern"], $_REQUEST["lookin"]);
 $content->setVariable("VALUE_PATTERN", $_REQUEST["pattern"]);
 if ($_REQUEST["lookin"] == "login") {
     $content->setVariable("CHECKED_LOGIN", 'checked="checked"');
 } else {
     $content->setVariable("CHECKED_NAME", 'checked="checked"');
 }
 $no_people = count($result);
 //$html_people->setVariable( "LABEL_CONTACTS", gettext( "Results" ) . " (" . str_replace( array( "%a", "%z", "%s" ), array( $start + 1, $end, $no_people), gettext( "%a-%z out of %s" ) ) . ")" );
 if ($no_people > 0) {
     $parse_show_search_result_block = true;
     $paul_error = false;
     $paul_person_found = false;
     foreach ($result as $person) {
         try {
             $paul_person_no = $paul_client->get_person_no_by_uid(strtolower($person["OBJ_NAME"]));
         } catch (Exception $exception) {
             $paul_error = true;
             $problem = $exception->getMessage();
             error_log($problem);
         }
         if (!$paul_error) {
             try {
                 $paul_person_id = $paul_client->get_person_id_by_person_no($paul_person_no);
             } catch (Exception $exception) {
                 $paul_error = true;
                 $problem = $exception->getMessage();
                 error_log($problem);
             }
         }
         $content->setCurrentBlock("BLOCK_SHOW_SEARCH_RESULT_PERSON");
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);