english/libraries/joomla/database/databasequery.php
/**
	 * Method to quote and optionally escape a string to database requirements for insertion into the database.
	 *
	 * @param   string  $text    The string to quote.
	 * @param   bool    $escape  True to escape the string, false to leave it unchanged.
	 *
	 * @return  string  The quoted input string.
	 *
	 * @since   11.1
	 * @throws  DatabaseError if the internal db property is not a valid object.
	 */
Method to quote and optionally escape a string to database requirements for insertion into the database.
@param   string  $text    The string to quote.
@param   bool    $escape  True to escape the string, false to leave it unchanged.

@return  string  The quoted input string.

@since   11.1
@throws  DatabaseError if the internal db property is not a valid object.
Method to quote and optionally escape a string to database requirements for insertion into the database . @param string $text The string to quote . @param bool $escape True to escape the string false to leave it unchanged . @return string The quoted input string . @since 11 . 1 @throws DatabaseError if the internal db property is not a valid object .
public function quote($text, $escape = true)
	{
		if (!($this->db instanceof JDatabase)) {
			throw new DatabaseException('JLIB_DATABASE_ERROR_INVALID_DB_OBJECT');
		}
		return $this->db->quote(($escape ? $this->db->escape($text) : $text));
	}
public function quote ( $ text , $ escape = true ) { if ( ! ( $ this -> db instanceof JDatabase ) ) { throw new DatabaseException ( 'JLIB_DATABASE_ERROR_INVALID_DB_OBJECT' ) ; } return $ this -> db -> quote ( ( $ escape ? $ this -> db -> escape ( $ text ) : $ text ) ) ; }
Method to quote and optionally escape a string to database requirements for insertion into the database.
Method to quote and optionally escape a string to database requirements for insertion into the database .