• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/threadstrategy/abstractthreadstrategy.php
  • Класс: BitrixSenderPostingThreadStrategyAbstractThreadStrategy
  • Вызов: AbstractThreadStrategy::getRecipients
public function getRecipients(int $limit): Result
{
	static::setRuntime();
	static::setFilter();
	static::setSelect();

	// select all recipients of posting, only not processed
	$recipients = PostingRecipientTable::getList(
		[
			'select'  => $this->select,
			'filter'  => $this->filter,
			'runtime' => $this->runtime,
			'order' => ['STATUS' => 'DESC'],
			'limit'   => $limit
		]
	);

	$recipients->addFetchDataModifier(
		function($row)
		{
			$row['FIELDS'] = is_array($row['FIELDS']) ? $row['FIELDS'] : [];

			return $row;
		}
	);

	return $recipients;
}