Beispiel #1
0
 /**
  * 
  * @global type $DB
  * @param \TUser $user
  */
 static function insertUser($user)
 {
     global $DB;
     debug('Insert User to DataBase');
     $userId = $user->getUserId() ?: 'NULL';
     $sql = "INSERT INTO " . TRUSTEDNET_DB_TABLE_USER . " (ID, USER_ID) VALUES (" . $user->getId() . ", " . $userId . ")";
     $DB->Query($sql);
 }