• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/block.php
  • Класс: BitrixLandingBlock
  • Вызов: Block::save
public function save(array $additionalFields = [])
{
	if ($this->access == $this::ACCESS_A)
	{
		$this->error->addError(
			'ACCESS_DENIED',
			Loc::getMessage('LANDING_BLOCK_ACCESS_DENIED')
		);
		return false;
	}

	$data = array(
		'SORT' => $this->sort,
		'ACTIVE' => $this->active ? 'Y' : 'N',
		'ANCHOR' => $this->anchor,
		'DELETED' => $this->deleted ? 'Y' : 'N',
		'DESIGNED' => $this->designed ? 'Y' : 'N',
		'ASSETS' => $this->assets ? $this->assets : null
	);
	if ($additionalFields)
	{
		$data = array_merge($data, $additionalFields);
	}
	if ($this->content)
	{
		$data['CONTENT'] = $this->content;
		$data['SEARCH_CONTENT'] = $this->getSearchContent();
	}
	Cache::clear($this->id);
	$res = parent::update($this->id, $data);
	$this->error->addFromResult($res);
	return $res->isSuccess();
}