public function __set($Variable, $Value)
 {
     parent::__set($Variable, $Value);
     if ($Variable == 'error') {
         $this->LogError($this->errno, $this->error);
     }
 }