Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/catalog/general/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/catalog/general/catalog_event.php

<?php

use Bitrix\Main\Localization\Loc;

class CCatalogEvent
{
	/**
	 * @return array
	 */
	public static function GetAuditTypes(): array
	{
		return [
			"CAT_YAND_AGENT" => "[CAT_YAND_AGENT] ".Loc::getMessage("CAT_YAND_AGENT"),
			"CAT_YAND_FILE" => "[CAT_YAND_FILE] ".Loc::getMessage('CAT_YAND_FILE'),
		];
	}

	/**
	 * @return array
	 */
	public static function GetYandexAgentEvent(): array
	{
		return ['CAT_YAND_AGENT','CAT_YAND_FILE'];
	}

	/**
	 * @return string
	 */
	public static function GetYandexAgentFilter(): string
	{
		return '&find_audit_type[]=CAT_YAND_AGENT&find_audit_type[]=CAT_YAND_FILE';
	}
}