/**
  * Unregister recordset from the global list of open recordsets.
  */
 private function unregister()
 {
     if ($this->db) {
         $this->db->recordset_closed($this);
         $this->db = null;
     }
 }
 /**
  * Constructor - instantiates the database, specifying if it's external (connect to other systems) or no (Moodle DB)
  *              note this has effect to decide if prefix checks must be performed or no
  * @param bool true means external database used
  */
 public function __construct($external = false)
 {
     parent::__construct($external);
 }