• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/controller/row.php
  • Класс: BitrixReportVisualConstructorControllerRow
  • Вызов: Row::deleteAction
public function deleteAction($params)
{
	$boardKey = $params['boardId'];
	$rowId = $params['rowId'];
	$dashboardForUser = DashboardHelper::getDashboardByKeyForCurrentUser($boardKey);
	if ($dashboardForUser)
	{
		$row = DashboardRow::getCurrentUserRowByGId($rowId);
		if ($row)
		{
			return $row->delete();
		}
		else
		{
			$this->adderror(new Error('No Row with this id'));
			return false;
		}
	}
	else
	{
		$this->adderror(new Error('No dashboard for current user'));
		return false;
	}
}