API15

JQueryElement/append: Difference between revisions

From Joomla! Documentation

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


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

Latest revision as of 01:03, 25 March 2017

Description

Appends element parts to the internal list

[<! removed edit link to red link >]

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

Syntax

append($elements)
Parameter Name Default Value Description
$elements String or array

Defined in

libraries/joomla/database/query.php

Importing

jimport( 'joomla.database.query' );

Source Body

public function append($elements)
{
        if (is_array($elements)) {
                $this->_elements = array_unique(array_merge($this->_elements, $elements));
        } else {
                $this->_elements = array_unique(array_merge($this->_elements, array($elements)));
        }
}

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

Examples

Code Examples