API15:JDatabase/Quote
From Joomla! Documentation
Description
Get a quoted database escaped string
Template:Description:JDatabase/Quote
Syntax
Quote($text, $escaped=true)
| Parameter Name | Default Value | Description |
|---|---|---|
| $text | A string | |
| $escaped | true | Default true to escape string, false to leave the string unchanged |
Returns
string public
Defined in
libraries/joomla/database/database.php
Importing
jimport( 'joomla.database.database' );
Source Body
function Quote( $text, $escaped = true )
{
return '\''.($escaped ? $this->getEscaped( $text ) : $text).'\'';
}
[Edit See Also] Template:SeeAlso:JDatabase/Quote
Examples
<CodeExamplesForm />