• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/Controller/Action/Terminal/GetPaymentListAction.php
  • Класс: BitrixCrmMobileControllerActionTerminalGetPaymentListAction
  • Вызов: GetPaymentListAction::run
public function run(PageNavigation $pageNavigation, array $extra = [])
{
	$this->checkModules();
	if ($this->hasErrors())
	{
		return $this->showErrors();
	}

	$permissions = $this->getUserPermissions();
	if (!$permissions['read'])
	{
		return self::getResponse([], $permissions);
	}

	if ($pageNavigation->getOffset() === 0)
	{
		PullManager::subscribe((int)$this->getCurrentUser()->getId());
	}

	return self::getResponse(
		$this->getListItems($pageNavigation, $extra),
		$permissions
	);
}