JTableNested::getPath: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Method to get an array of nodes from a given node to its root. | Method to get an array of nodes from a given node to its root. | ||
<source lang="php"> | <source lang="php"> | ||
public | public function getPath ( | ||
$pk=null | |||
$diagnostic=false | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 30: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' mixed Boolean false on failure or array of node objects on success. | |||
mixed Boolean false on failure or array of node objects on success. | * '''Defined''' on line 107 of libraries/joomla/database/tablenested.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/database/tablenested.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JTableNested::getPath source code''' on [[jplatform:database/tablenested.php#cl-99|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JTableNested|JTableNested]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | |||
* | * [[API17:JTableNested::getPath|Other versions of JTableNested::getPath]] | ||
* [[JTableNested::getPath|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JTableNested::getPath | category=JTableNested::getPath | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:49, 25 March 2017
JTableNested::getPath
Description
Method to get an array of nodes from a given node to its root.
public function getPath (
$pk=null
$diagnostic=false
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $pk | integer | null | Primary key of the node for which to get the path. |
| $diagnostic | boolean | false | Only select diagnostic data for the nested sets. |
- Returns mixed Boolean false on failure or array of node objects on success.
- Defined on line 107 of libraries/joomla/database/tablenested.php
- Since

See also
JTableNested::getPath source code on BitBucket
Class JTableNested
Subpackage Database- Other versions of JTableNested::getPath
User contributed notes
Code Examples