/** * Function that collects connection info * returns a Content list used for error handling (only on debugging mode) * * @return ContentList */ private function getDebuggingContentList() { $contents = new ContentList ( "Server", $this->host ); $contents->addContent ( "User", $this->user ); $contents->addContent ( "Password", $this->password ); $contents->addContent ( "Schema", $this->schema ); $contents->addContent ( "MySQL Error", mysql_error () ); return $contents; }