API17

Difference between revisions of "JTableNested::moveByReference"

From Joomla! Documentation

m (→‎See also: moving preparation)
m (clean up)
Line 4: Line 4:
 
Method to move a node and its children to a new location in the tree.  
 
Method to move a node and its children to a new location in the tree.  
  
{{Description:JTableNested::moveByReference}}
+
{{subst:Description:JTableNested::moveByReference}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JTableNested::moveByReference|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
public function moveByReference (
 
public function moveByReference (
Line 46: Line 44:
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
 
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
 
* [[API17:JTableNested::moveByReference|Other versions of JTableNested::moveByReference]]
 
* [[API17:JTableNested::moveByReference|Other versions of JTableNested::moveByReference]]
{{SeeAlso:JTableNested::moveByReference}}
+
{{subst:SeeAlso:JTableNested::moveByReference}}
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JTableNested::moveByReference|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />

Revision as of 11:16, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JTableNested::moveByReference[edit]

Description[edit]

Method to move a node and its children to a new location in the tree.

{{subst:Description:JTableNested::moveByReference}}

public function moveByReference (
        $referenceId
        $position= 'after'
        $pk=null
)
Parameter Type Default Description
$referenceId integer The primary key of the node to reference new location by.
$position string 'after' Location type string. ['before', 'after', 'first-child', 'last-child']
$pk integer null The primary key of the node to move.
  • Returns boolean True on success.
  • Defined on line 283 of libraries/joomla/database/tablenested.php
  • Since Joomla 11.1

See also[edit]

{{subst:SeeAlso:JTableNested::moveByReference}}

User contributed notes[edit]

<CodeExamplesForm />