references:joomla.framework:database:jdatabase-isquotedisQuoted
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. Syntaxboolean isQuoted ( $fieldName )
ExamplesExample $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 Discussion |


