english/libraries/joomla/database/databasequery.php
/**
	 * Method to escape a string for usage in an SQL statement.
	 *
	 * @param   string  $text   The string to be escaped.
	 * @param   bool    $extra  Optional parameter to provide extra escaping.
	 *
	 * @return  string  The escaped string.
	 *
	 * @since   11.1
	 * @throws  DatabaseError if the internal db property is not a valid object.
	 */
Method to escape a string for usage in an SQL statement.
@param   string  $text   The string to be escaped.
@param   bool    $extra  Optional parameter to provide extra escaping.

@return  string  The escaped string.

@since   11.1
@throws  DatabaseError if the internal db property is not a valid object.
Method to escape a string for usage in an SQL statement . @param string $text The string to be escaped . @param bool $extra Optional parameter to provide extra escaping . @return string The escaped string . @since 11 . 1 @throws DatabaseError if the internal db property is not a valid object .
public function escape($text, $extra = false)
	{
		if (!($this->db instanceof JDatabase)) {
			throw new DatabaseException('JLIB_DATABASE_ERROR_INVALID_DB_OBJECT');
		}
		$this->db->escape($text, $extra);
	}
public function escape ( $ text , $ extra = false ) { if ( ! ( $ this -> db instanceof JDatabase ) ) { throw new DatabaseException ( 'JLIB_DATABASE_ERROR_INVALID_DB_OBJECT' ) ; } $ this -> db -> escape ( $ text , $ extra ) ; }
Method to escape a string for usage in an SQL statement.
Method to escape a string for usage in an SQL statement .