• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderpayment.php
  • Класс: BitrixSaleHelpersAdminBlocksOrderPayment
  • Вызов: OrderPayment::getImgPathList
static function getImgPathList()
{
	$dbRes = PaySystemManager::getList(
		array(
			'select' => array('ID', 'LOGOTIP')
		)
	);
	$paySystems = $dbRes->fetchAll();

	$logotypes = array('/bitrix/images/sale/nopaysystem.gif');
	foreach ($paySystems as $paySystem)
	{
		if (empty($paySystem['LOGOTIP']))
		{
			$logotypes[$paySystem['ID']] = $logotypes[0];
		}
		else
		{
			$image = CFile::ResizeImageGet($paySystem["LOGOTIP"], array('width' => 100, 'height' => 60));
			$logotypes[$paySystem['ID']] = $image['src'];
		}
	}

	return $logotypes;
}