API16

API16:JDatabase/isQuoted

From Joomla! Documentation

Revision as of 22:40, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Checks if field name needs to be quoted <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Checks if field name needs to be quoted

[Edit Descripton]

Template:Description:JDatabase/isQuoted

Syntax

isQuoted($fieldName)
Parameter Name Default Value Description
$fieldName The field name

Returns

bool

Defined in

libraries/joomla/database/database.php

Importing

jimport( 'joomla.database.database' );

Source Body

public function isQuoted($fieldName)
{
        if ($this->_hasQuoted) {
                return in_array($fieldName, $this->_quoted);
        } else {
                return true;
        }
}

[Edit See Also] Template:SeeAlso:JDatabase/isQuoted

Examples

<CodeExamplesForm />