API16

JDatabase/isQuoted: Difference between revisions

From Joomla! Documentation

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...
 
m preparing for archive only
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Checks if field name needs to be quoted
Checks if field name needs to be quoted


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDatabase/isQuoted|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JDatabase/isQuoted}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase/isQuoted|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JDatabase/isQuoted}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=isQuoted
  category=isQuoted
  category=JDatabase
  category=JDatabase
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Latest revision as of 01:26, 25 March 2017

Description

Checks if field name needs to be quoted


<! removed transcluded page call, red link never existed >

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;
        }
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples