| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Database |
JDatabase |
isQuoted |
isQuoted() |
Never | Work in Progress |
Checks if the field name needs to be quoted (i.e. if it has been added to the array of field names to be quoted with the JDatabase->addQuoted method). Returns true if the field is to be quoted, false otherwise.
boolean isQuoted ( $fieldName )
| $fieldName | string | is a string containing the name of the field. |
Example
$dbo = JFactory::getDBO(); $dbo->addQuoted( 'description' ); echo 'Description should be: ' . ($dbo->isQuoted( 'description' ) ? 'Quoted' : 'Not Quoted'); echo 'Address should be: ' . ($dbo->isQuoted( 'address' ) ? 'Quoted' : 'Not Quoted');
might produce:
Result
Description should be: Quoted Address should be: Not Quoted