/**
  * adds a row to the login history table
  * 
  * WARNING! Multiple sets of options are supported only for LDAP class
  * 
  * @param number $userID user id that has logged in
  * @param number $time unix timestamp of the login
  * 
  * @access public
  */
 public function addLoginToHistory($userID, $time = null)
 {
     if (is_null($time)) {
         $time = time();
     }
     $this->dataHandler->addLoginToHistory($userID, $time, $this->id, $this->successfulOptionsID);
 }