API15

JDatabase/addQuoted: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 46: Line 46:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=addQuoted
  category=addQuoted
  category=JDatabase
  category=JDatabase
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:25, 25 March 2017

Description

Adds a field or array of field names to the list that are to be quoted

[<! removed edit link to red link >]

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

Syntax

addQuoted($quoted)
Parameter Name Default Value Description
$quoted Field name or array of names

Defined in

libraries/joomla/database/database.php

Importing

jimport( 'joomla.database.database' );

Source Body

function addQuoted( $quoted )
{
        if (is_string( $quoted )) {
                $this->_quoted[] = $quoted;
        } else {
                $this->_quoted = array_merge( $this->_quoted, (array)$quoted );
        }
        $this->_hasQuoted = true;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples