JDatabaseDriver::quoteName
Wrap an SQL statement identifier name such as column, table or database names in quotes to prevent injection risks and reserved word conflicts.
Signature
public function quoteName(mixed
$name,
[mixed
$as = null] )
Parameters
-
$name
- The identifier name to wrap in quotes, or an array of identifier names to wrap in quotes.
-
$as
- The AS query part associated to $name. It can be string or array, in latter case it has to be
Returns
- mixed
- The quote wrapped name, same type of $name.