4use \Bitrix\Landing\Rights;
5use \Bitrix\Landing\Note\Target;
6use \Bitrix\Landing\Note\Source;
7use \Bitrix\Landing\Site\Type;
8use \Bitrix\Main\Engine\Controller;
48 public function createNoteAction(
int $kbId,
string $sourceType,
int $sourceId, ?
string $scope =
null): ?array
56 if (check_bitrix_sessid())
58 $result = Source::createFromSource($kbId, $sourceType, $sourceId);
60 if (is_array($result))
65 $this->
addError(
new Error(
'Error occurred during note creating.'));
createNoteAction(int $kbId, string $sourceType, int $sourceId, ?string $scope=null)
static getTargetsAction()
static hasAdditionalRight($code, $type=null, bool $checkExtraRights=false, bool $strict=false)