function appendDebug($string) { if ($this->debugLevel > 0) { echo $string; } return parent::appendDebug($string); }