public function quoteString($str) { if ($this->getActive()) { return $this->_pdo->quote($str); } else { throw new TDbException('dbconnection_connection_inactive'); } }