API docs     >     Content Blocks     >     CblockMgr

CblockMgr->getCblocksByText

Description

getCblocksByText ( $searchText, $filter = "" )
Gets Cblocks by searchtext

Parameters

$searchText
string
Cblock Id of the parent Cblock
$filter
string
(optional) Filter (If "TRASHCAN" only returns nodes in the trash)

Returns

array|false
Array of Cblocks or FALSE in case of an error
  1. Array(
  2.     [0] => Array(
  3.         [ID] => 225
  4.         [OBJECTID] => 225
  5.         [FOLDER] => 0
  6.         [TEXT] =>
  7.         [TEXTPREVIEW] =>
  8.         [VERSION] => 3
  9.         [APPROVED] => 1
  10.         [CREATEDBY] => 1
  11.         [CHANGEDBY] => 1
  12.         [HASCHANGED] => 0
  13.         [LOCKED] => 0
  14.         [LOCKUID] =>
  15.         [TOKEN] =>
  16.         [DELETED] => 0
  17.         [COMMENTSTATUS] => 1
  18.         [COMMENTSTATUS_AUTO] => 1
  19.         [CREATEDTS] => 1331205362
  20.         [CHANGEDTS] => 1339411887
  21.         [EMBEDDED] => 1
  22.         [LFT] => 447
  23.         [RGT] => 448
  24.         [VERSIONPUBLISHED] => 999999
  25.         [LEVEL] => 3
  26.         [PARENT] => 2
  27.         [SCORE] => 1
  28.         [OID] => 238
  29.         [NAME] => Richtext paragraph
  30.         [DESCRIPTION] =>
  31.         [DATUM] =>
  32.         [RREAD] => 1
  33.         [RWRITE] => 1
  34.         [RDELETE] => 1
  35.         [RSTAGE] => 1
  36.         [RMODERATE] => 1
  37.         [RCOMMENT] => 1
  38.     )
  39.     ...
  40. )