API docs     >     Content Blocks     >     CblockMgr

CblockMgr->getByPage

Description

getByPage ( $siteId, $pageId )
Gets Cblocks by Site and Page

Parameters

$siteId
int
Site Id
$pageId
int
Page Id

Returns

array|false
Array of Cblock Ids or FALSE in case of an error
  1. Array(
  2.     [0] => Array(
  3.         [ID] => 1
  4.         [CBID] => 225
  5.         [CBVERSION] => 1
  6.         [CBPID] => 0
  7.         [PID] => 2
  8.         [PVERSION] => 3
  9.         [ORDERPROD] => 0
  10.         [TEMPLATECONTENTAREA] => content
  11.     )
  12.     ...
  13. )