Documentation

ReplacePreset

int
public function replacePreset(
	$presetId,
	$arPresetData
);

This method returns ID of the replaced preset.

Method parameters

ParameterDescription
$presetIdId of the replaced preset.
$arPresetDataArray that describes the preset. Must contain the following keys:
  • Name — name of the preset (up to 100 symbols),
  • Parent — ID of the parent preset (must be equal to CTaskFilterCtrl::ROOT_PRESET),
  • Condition — array that describes the condition of the filter (matches to the data that can be passed as the $arFilter parameter to the CTasks::GetList()).


© «Bitrix24», 2001-2024