Documentation

add

\Bitrix\Main\Entity\AddResult public static
\Bitrix\Highloadblock\HighloadBlockTable::add(
 array $data
);

Adds new highload block. Static method.

Parameters

ParameterDescriptionVersion
$dataArray, containing highload block field values.

Example

//создание hl-блока
$result = Bitrix\Highloadblock\HighloadBlockTable::add(array(
	'NAME' => 'MyTbl',//start with capital letter and consist of Latin characters and numerals only
	'TABLE_NAME' => 'myname',//must consist only of low case Latin characters, numerals and underscore character
));
if (!$result->isSuccess()) {
	$errors = $result->getErrorMessages();
} else {
	$id = $result->getId();
}
...


© «Bitrix24», 2001-2024
Up