API docs     >     Content Blocks     >     CblockMgr

CblockMgr->add

Description

add ( $parentCbId, $folder = 0, $name = "New object" )
Adds a new Cblock to the specified parent Cblock (folder)

Parameters

$parentCbId
int
Parent Cblock Id
$folder
int
"0" for a Cblock or "1" if a folder should be created
$name
string
(optional) Cblock name

Returns

int|false
New Cblock Id or FALSE in case of an error