errorMessage = trim($err); } function setErrorMessage($err = '') { $this->errorMessage .= $this->errorMessage ? '
' : ''; $this->errorMessage .= trim($err); } function setErrorContent($content = '') { $errHtml = ''; if ($this->errorMessage) { $errHtml = "
" . $this->errorMessage . "
"; } echo $content . $errHtml; } function runError() { add_filter('the_content', array(&$this, 'setErrorContent'), 10); } }