API docs     >     General     >     Tags

Tags->getParents

Description

getParents ( $tagId )
Gets the parents of the specified Tag

Parameters

$tagId
int
Tag Id

Returns

array
Array of parent Tags
  1. Array(                              array Array of n Tags
  2.     [0] => Array(
  3.         [0] => Array(
  4.             [LFT] => 1              int Id of the left node in the nested set tree structure
  5.             [RGT] => 10             int Id of the right node in the nested set tree structure
  6.             [VERSIONPUBLISHED] => 0 int Published version (either a specific version or 999999 if set to 'ALWAYS_LATEST_APPROVED_VERSION')
  7.             [ID] => 1               int Id
  8.             [LEVEL] => 1            int Level in tree
  9.             [PARENT] => 0           int Parent Id
  10.             [NAME] => 'Tags'        string Name
  11.         )
  12.     )
  13.     ...
  14. )