API docs     >     General     >     Tags

Tags->getByTag

Description

getByTag ( $list, $sort = "OBJECTORDER DESC", $concat = "OR", $published = false, $filterArray, $noTrash = true )
Gets a list of Objects which got the specified Tags assigned

Parameters

$list
int
List of Tag Ids or single Tag Id
$sort
string
(optional) Specifies the order qualifier of the SQL query
$concat
string
(optional) Specifies which operator should be used in the SQL query (default is OR)
$published
bool
(optional) Specifies if only published versions should be returned
$filterArray
Array of filters used in the SQL query
$noTrash
bool
TRUE when Objects in the trash shouldn't be returned

Returns

array|false
  1. Array(
  2.     [0] => Array(
  3.         [ID] => 2
  4.         [OBJECTID] => 2
  5.         [VERSION] => 6
  6.         [APPROVED] => 0
  7.         [CREATEDBY] => 1
  8.         [CHANGEDBY] => 1
  9.         [HASCHANGED] => 0
  10.         [TEMPLATEID] => 3
  11.         [COMMENTSTATUS] => 1
  12.         [COMMENTSTATUS_AUTO] => 1
  13.         [NAVIGATION] => 0
  14.         [ACTIVE] => 1
  15.         [HIDDEN] => 1
  16.         [LOCKED] => 0
  17.         [LOCKUID] => 1
  18.         [TOKEN] =>
  19.         [DELETED] => 0
  20.         [CREATEDTS] => 1331135843
  21.         [CHANGEDTS] => 1339513240
  22.         [TAGID] => 4
  23.         [OBJECTORDER] => 2
  24.         [LFT] => 2
  25.         [RGT] => 3
  26.         [VERSIONPUBLISHED] => 999999
  27.         [TITLE] =>
  28.         [LEVEL] => 2
  29.         [PARENT] => 1
  30.         [PNAME] => Overview
  31.     )
  32.     ...
  33. )