test_user.php 698 Bytes
Newer Older
mbriand's avatar
bleh    
mbriand committed
1
2
<?
$topdir = "../";
mbriand's avatar
bleh    
mbriand committed
3
require_once($topdir . "include/entities/utilisateur.inc.php");
mbriand's avatar
bleh    
mbriand committed
4
require_once($topdir . "include/entities/std.inc.php");
mbriand's avatar
bleh    
mbriand committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

$site = new site ();
$user = new utilisateur($site->db,$site->dbrw);
$user->load_all_by_id($_REQUEST["id_utilisateur"]);

echo $user->id."\n";
echo $user->id_ville."\n";
echo $user->id_pays."\n";
echo $user->id_ville_parents."\n";
echo $user->id_pays_parents."\n";

echo "--------\n";

$user = new utilisateur($site->db,$site->dbrw);
$user->load_by_id($_REQUEST["id_utilisateur"]);
$user->load_all_extras();

echo $user->id."\n";
echo $user->id_ville."\n";
echo $user->id_pays."\n";
echo $user->id_ville_parents."\n";
echo $user->id_pays_parents."\n";


?>