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

$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"]);
mbriand's avatar
bleh    
mbriand committed
21
$user->load_all_extra();
mbriand's avatar
bleh    
mbriand committed
22
23
24
25
26
27
28
29
30

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";


?>