function flatten($highlight = false) { $old = self::$decorateToString; self::$decorateToString = $highlight; $str = $this->__toString(); if ($highlight) { $str = "<pre class='er7'>{$str}</pre>"; } self::$decorateToString = $old; return $str; }