1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл yandex_run.php

См. исходные тексты.

Переменные

 $MAX_EXECUTION_TIME = (isset($MAX_EXECUTION_TIME) ? (int)$MAX_EXECUTION_TIME : 0)
 $CHECK_PERMISSIONS = (isset($CHECK_PERMISSIONS) && $CHECK_PERMISSIONS == 'Y' ? 'Y' : 'N')
else $permissionFilter = array('CHECK_PERMISSIONS' => 'N')
 $pageSize = 100
 $navParams = array('nTopCount' => $pageSize)
 $SETUP_VARS_LIST = 'IBLOCK_ID,SITE_ID,V,XML_DATA,SETUP_SERVER_NAME,COMPANY_NAME,SETUP_FILE_NAME,USE_HTTPS,FILTER_AVAILABLE,DISABLE_REFERERS,EXPORT_CHARSET,MAX_EXECUTION_TIME,CHECK_PERMISSIONS'
 $INTERNAL_VARS_LIST = 'intMaxSectionID,boolNeedRootSection,arSectionIDs,arAvailGroups'
global $USER
 $bTmpUserCreated = false
if(!CCatalog::IsUserExists()) $saleIncluded = Loader::includeModule('sale')
 $arYandexFields
 $formatList
if(!function_exists("yandex_replace_special")) if(!function_exists("yandex_text2xml")) if(!function_exists( 'yandex_get_value')) if(!function_exists('yandexPrepareItems')) $arRunErrors = array()
 $yandexFormat = 'none'
 $productFormat = ($yandexFormat != 'none' ? ' type="'.htmlspecialcharsbx($yandexFormat).'"' : '')
 $fields = array()
 $parametricFields = array()
 $fieldsExist = !empty($XML_DATA['XML_DATA']) && is_array($XML_DATA['XML_DATA'])
 $parametricFieldsExist = false
if( $fieldsExist) if($parametricFieldsExist) $needProperties = $fieldsExist || $parametricFieldsExist
 $yandexNeedPropertyIds = array()
if( $fieldsExist) if($parametricFieldsExist) $commonFields
 $descrField = $commonFields['DESCRIPTION']
 $propertyFields
 $itemUrlConfig
 $offerUrlConfig
 $IBLOCK_ID = (int)$IBLOCK_ID
 $db_iblock = CIBlock::GetByID($IBLOCK_ID)
if(!($ar_iblock=$db_iblock->Fetch())) else
 $rsProps
 $ar_iblock ['DETAIL_PAGE_URL'] = (string)$ar_iblock['DETAIL_PAGE_URL']
 $itemUrlConfig ['USE_DOMAIN'] = !(preg_match("/^(http|https):\\/\\//i", $ar_iblock['DETAIL_PAGE_URL']))
 $itemUrlConfig ['REFERRER_SEPARATOR'] = (mb_strpos($ar_iblock['DETAIL_PAGE_URL'], '?') === false ? '?' : '&')
 $SETUP_SERVER_NAME = (isset($SETUP_SERVER_NAME) ? trim($SETUP_SERVER_NAME) : '')
 $COMPANY_NAME = (isset($COMPANY_NAME) ? trim($COMPANY_NAME) : '')
 $SITE_ID = (isset($SITE_ID) ? (string)$SITE_ID : '')
 $iterator
 $site = $iterator->fetch()
 $site ['COMPANY_NAME'] = $COMPANY_NAME
 $site ['SERVER_NAME'] = (string)$site['SERVER_NAME']
if( $site[ 'SERVER_NAME']==='') if($site['SERVER_NAME']==='') $arProperties = array()
 $boolOffers = false
 $arOffers = false
 $arOfferIBlock = false
 $intOfferIBlockID = 0
 $offersCatalog = false
 $arSelectOfferProps = array()
 $arSelectedPropTypes
 $arOffersSelectKeys
 $arCondSelectProp
 $arSKUExport = array()
 $arCatalog = CCatalogSku::GetInfoByIBlock($IBLOCK_ID)
if(!empty( $arOffers[ 'IBLOCK_ID'])) if($boolOffers) $propertyIdList = array_keys($arProperties)
if(empty($arRunErrors)) $arUserTypeFormat = array()
 $bAllSections = false
 $arSections = array()
if(empty($arRunErrors)) $selectedPriceType = 0
if(!empty($XML_DATA['PRICE'])) $priceTypeList = []
if(empty($arRunErrors)) $usedProtocol = (isset($USE_HTTPS) && $USE_HTTPS == 'Y' ? 'https://' : 'http://')
 $filterAvailable = (isset($FILTER_AVAILABLE) && $FILTER_AVAILABLE == 'Y')
 $disableReferers = (isset($DISABLE_REFERERS) && $DISABLE_REFERERS == 'Y')
 $exportCharset = (isset($EXPORT_CHARSET) && is_string($EXPORT_CHARSET) ? $EXPORT_CHARSET : '')
 $vatExportSettings
 $vatRates
 $vatList = array()
 $vatExport = $vatExportSettings['ENABLE'] == 'Y'
if($vatExport) $itemOptions
 $sectionFileName = ''
 $itemFileName = ''
if(empty($arRunErrors)) $itemsFile = null
 $BASE_CURRENCY = Currency\CurrencyManager::getBaseCurrency()

Переменные

◆ $ar_iblock

$ar_iblock[ 'DETAIL_PAGE_URL'] = (string)$ar_iblock['DETAIL_PAGE_URL']

См. определение в файле yandex_run.php строка 600

◆ $arCatalog

$arCatalog = CCatalogSku::GetInfoByIBlock($IBLOCK_ID)

См. определение в файле yandex_run.php строка 674

◆ $arCondSelectProp

$arCondSelectProp
Инициализатор
'ZERO',
'NONZERO',
'EQUAL',
'NONEQUAL',
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле yandex_run.php строка 666

◆ $arOfferIBlock

$arOfferIBlock = false

См. определение в файле yandex_run.php строка 650

◆ $arOffers

$arOffers = false

См. определение в файле yandex_run.php строка 649

◆ $arOffersSelectKeys

$arOffersSelectKeys
Инициализатор
)
const YANDEX_SKU_EXPORT_PROP
Определения include.php:21
const YANDEX_SKU_EXPORT_ALL
Определения include.php:19
const YANDEX_SKU_EXPORT_MIN_PRICE
Определения include.php:20

См. определение в файле yandex_run.php строка 661

◆ $arProperties

if($site['SERVER_NAME']==='') if ( $site[ 'SERVER_NAME']==='') $arProperties = array()

◆ $arRunErrors

if(!function_exists("yandex_replace_special")) if(!function_exists("yandex_text2xml")) if(!function_exists('yandex_get_value')) if (!function_exists( 'yandexPrepareItems')) $arRunErrors = array()

См. определение в файле yandex_run.php строка 485

◆ $arSections

$arSections = array()

См. определение в файле yandex_run.php строка 805

◆ $arSelectedPropTypes

$arSelectedPropTypes
Инициализатор
Iblock\PropertyTable::TYPE_STRING,
Iblock\PropertyTable::TYPE_NUMBER,
Iblock\PropertyTable::TYPE_LIST,
Iblock\PropertyTable::TYPE_ELEMENT,
Iblock\PropertyTable::TYPE_SECTION
)

См. определение в файле yandex_run.php строка 654

◆ $arSelectOfferProps

$arSelectOfferProps = array()

См. определение в файле yandex_run.php строка 653

◆ $arSKUExport

$arSKUExport = array()

См. определение в файле yandex_run.php строка 672

◆ $arUserTypeFormat

if (empty( $arRunErrors)) $arUserTypeFormat = array()

См. определение в файле yandex_run.php строка 788

◆ $arYandexFields

$arYandexFields
Инициализатор
'typePrefix', 'vendor', 'vendorCode', 'model',
'author', 'name', 'publisher', 'series', 'year',
'ISBN', 'volume', 'part', 'language', 'binding',
'page_extent', 'table_of_contents', 'performed_by', 'performance_type',
'storage', 'format', 'recording_length', 'artist', 'title', 'year', 'media',
'starring', 'director', 'originalName', 'country', 'aliases',
'description', 'sales_notes', 'promo', 'provider', 'tarifplan',
'xCategory', 'additional', 'worldRegion', 'region', 'days', 'dataTour',
'hotel_stars', 'room', 'meal', 'included', 'transport', 'price_min', 'price_max',
'options', 'manufacturer_warranty', 'country_of_origin', 'downloadable', 'adult', 'param',
'place', 'hall', 'hall_part', 'is_premiere', 'is_kids', 'date'
)

См. определение в файле yandex_run.php строка 71

◆ $bAllSections

$bAllSections = false

См. определение в файле yandex_run.php строка 804

◆ $BASE_CURRENCY

$BASE_CURRENCY = Currency\CurrencyManager::getBaseCurrency()

См. определение в файле yandex_run.php строка 987

◆ $boolOffers

$boolOffers = false

См. определение в файле yandex_run.php строка 648

◆ $bTmpUserCreated

$bTmpUserCreated = false

См. определение в файле yandex_run.php строка 57

◆ $CHECK_PERMISSIONS

$CHECK_PERMISSIONS = (isset($CHECK_PERMISSIONS) && $CHECK_PERMISSIONS == 'Y' ? 'Y' : 'N')

См. определение в файле yandex_run.php строка 41

◆ $commonFields

if($fieldsExist) if ( $parametricFieldsExist) $commonFields
Инициализатор
= [
'DESCRIPTION' => 'PREVIEW_TEXT'
]

См. определение в файле yandex_run.php строка 551

◆ $COMPANY_NAME

$COMPANY_NAME = (isset($COMPANY_NAME) ? trim($COMPANY_NAME) : '')

См. определение в файле yandex_run.php строка 606

◆ $db_iblock

$db_iblock = CIBlock::GetByID($IBLOCK_ID)

См. определение в файле yandex_run.php строка 572

◆ $descrField

$descrField = $commonFields['DESCRIPTION']

См. определение в файле yandex_run.php строка 556

◆ $disableReferers

$disableReferers = (isset($DISABLE_REFERERS) && $DISABLE_REFERERS == 'Y')

См. определение в файле yandex_run.php строка 901

◆ $exportCharset

$exportCharset = (isset($EXPORT_CHARSET) && is_string($EXPORT_CHARSET) ? $EXPORT_CHARSET : '')

См. определение в файле yandex_run.php строка 902

◆ $fields

$fields = array()

См. определение в файле yandex_run.php строка 501

◆ $fieldsExist

$fieldsExist = !empty($XML_DATA['XML_DATA']) && is_array($XML_DATA['XML_DATA'])

См. определение в файле yandex_run.php строка 503

◆ $filterAvailable

$filterAvailable = (isset($FILTER_AVAILABLE) && $FILTER_AVAILABLE == 'Y')

См. определение в файле yandex_run.php строка 900

◆ $formatList

$formatList
Инициализатор
'none' => array(
'vendor', 'vendorCode', 'sales_notes', 'manufacturer_warranty', 'country_of_origin',
'adult'
),
'vendor.model' => array(
'typePrefix', 'vendor', 'vendorCode', 'model', 'sales_notes', 'manufacturer_warranty', 'country_of_origin',
'adult'
),
'book' => array(
'author', 'publisher', 'series', 'year', 'ISBN', 'volume', 'part', 'language', 'binding',
'page_extent', 'table_of_contents', 'sales_notes'
),
'audiobook' => array(
'author', 'publisher', 'series', 'year', 'ISBN', 'performed_by', 'performance_type',
'language', 'volume', 'part', 'format', 'storage', 'recording_length', 'table_of_contents'
),
'artist.title' => array(
'title', 'artist', 'director', 'starring', 'originalName', 'country', 'year', 'media', 'adult'
)
)

См. определение в файле yandex_run.php строка 85

◆ $IBLOCK_ID

$IBLOCK_ID = (int)$IBLOCK_ID

См. определение в файле yandex_run.php строка 571

◆ $INTERNAL_VARS_LIST

$INTERNAL_VARS_LIST = 'intMaxSectionID,boolNeedRootSection,arSectionIDs,arAvailGroups'

См. определение в файле yandex_run.php строка 54

◆ $intOfferIBlockID

$intOfferIBlockID = 0

См. определение в файле yandex_run.php строка 651

◆ $itemFileName

$itemFileName = ''

См. определение в файле yandex_run.php строка 962

◆ $itemOptions

if ( $vatExport) $itemOptions
Инициализатор
'PROTOCOL' => $usedProtocol,
'CHARSET' => $exportCharset,
'SITE_NAME' => $site['SERVER_NAME'],
'SITE_DIR' => $site['DIR'],
'DESCRIPTION' => $descrField,
'MAX_DESCRIPTION_LENGTH' => 3000
)
if($USER->IsAuthorized()) if(!function_exists("yandex_replace_special")) if(!function_exists("yandex_text2xml")) $usedProtocol
Определения yandex.php:58
$descrField
Определения yandex_run.php:556
$site
Определения yandex_run.php:614
$exportCharset
Определения yandex_run.php:902

См. определение в файле yandex_run.php строка 952

◆ $itemsFile

if (empty( $arRunErrors)) $itemsFile = null

См. определение в файле yandex_run.php строка 985

◆ $itemUrlConfig [1/3]

$itemUrlConfig
Инициализатор
= [
'USE_DOMAIN' => true,
'REFERRER_SEPARATOR' => '?'
]

См. определение в файле yandex_run.php строка 562

◆ $itemUrlConfig [2/3]

$itemUrlConfig[ 'REFERRER_SEPARATOR'] = (mb_strpos($ar_iblock['DETAIL_PAGE_URL'], '?') === false ? '?' : '&amp;')

См. определение в файле yandex_run.php строка 602

◆ $itemUrlConfig [3/3]

$itemUrlConfig[ 'USE_DOMAIN'] = !(preg_match("/^(http|https):\\/\\//i", $ar_iblock['DETAIL_PAGE_URL']))

См. определение в файле yandex_run.php строка 601

◆ $iterator

$iterator
Инициализатор
= Main\SiteTable::getList(array(
'select' => array('LID', 'SERVER_NAME', 'SITE_NAME', 'DIR'),
'filter' => array('=LID' => $SITE_ID, '=ACTIVE' => 'Y')
))
$SITE_ID
Определения yandex_run.php:607

См. определение в файле yandex_run.php строка 610

◆ $MAX_EXECUTION_TIME

$MAX_EXECUTION_TIME = (isset($MAX_EXECUTION_TIME) ? (int)$MAX_EXECUTION_TIME : 0)

См. определение в файле yandex_run.php строка 25

◆ $navParams

$navParams = array('nTopCount' => $pageSize)

См. определение в файле yandex_run.php строка 51

◆ $needProperties

if($fieldsExist) if ( $parametricFieldsExist) $needProperties = $fieldsExist || $parametricFieldsExist

См. определение в файле yandex_run.php строка 536

◆ $offersCatalog

$offersCatalog = false

См. определение в файле yandex_run.php строка 652

◆ $offerUrlConfig

$offerUrlConfig
Инициализатор
= [
'USE_DOMAIN' => true,
'REFERRER_SEPARATOR' => '?'
]

См. определение в файле yandex_run.php строка 566

◆ $pageSize

$pageSize = 100

См. определение в файле yandex_run.php строка 50

◆ $parametricFields

$parametricFields = array()

См. определение в файле yandex_run.php строка 502

◆ $parametricFieldsExist

$parametricFieldsExist = false

См. определение в файле yandex_run.php строка 504

◆ $permissionFilter

else $permissionFilter = array('CHECK_PERMISSIONS' => 'N')

См. определение в файле yandex_run.php строка 45

◆ $priceTypeList

if (!empty( $XML_DATA[ 'PRICE'])) $priceTypeList = []

См. определение в файле yandex_run.php строка 872

◆ $productFormat

$productFormat = ($yandexFormat != 'none' ? ' type="'.htmlspecialcharsbx($yandexFormat).'"' : '')

См. определение в файле yandex_run.php строка 499

◆ $propertyFields

$propertyFields
Инициализатор
'ID', 'PROPERTY_TYPE', 'MULTIPLE', 'USER_TYPE'
)

См. определение в файле yandex_run.php строка 558

◆ $propertyIdList

if(!empty($arOffers['IBLOCK_ID'])) if ( $boolOffers) $propertyIdList = array_keys($arProperties)

См. определение в файле yandex_run.php строка 778

◆ $rsProps

$rsProps
Инициализатор
= \CIBlockProperty::GetList(
array('SORT' => 'ASC', 'NAME' => 'ASC'),
array('IBLOCK_ID' => $IBLOCK_ID, 'ACTIVE' => 'Y', 'CHECK_PERMISSIONS' => 'N')
)
$IBLOCK_ID
Определения csv_new_run.php:168

См. определение в файле yandex_run.php строка 584

◆ $saleIncluded

if (!CCatalog::IsUserExists()) $saleIncluded = Loader::includeModule('sale')

См. определение в файле yandex_run.php строка 66

◆ $sectionFileName

$sectionFileName = ''

См. определение в файле yandex_run.php строка 961

◆ $selectedPriceType

if (empty( $arRunErrors)) $selectedPriceType = 0

См. определение в файле yandex_run.php строка 850

◆ $SETUP_SERVER_NAME

$SETUP_SERVER_NAME = (isset($SETUP_SERVER_NAME) ? trim($SETUP_SERVER_NAME) : '')

См. определение в файле yandex_run.php строка 605

◆ $SETUP_VARS_LIST

$SETUP_VARS_LIST = 'IBLOCK_ID,SITE_ID,V,XML_DATA,SETUP_SERVER_NAME,COMPANY_NAME,SETUP_FILE_NAME,USE_HTTPS,FILTER_AVAILABLE,DISABLE_REFERERS,EXPORT_CHARSET,MAX_EXECUTION_TIME,CHECK_PERMISSIONS'

См. определение в файле yandex_run.php строка 53

◆ $site [1/3]

$site = $iterator->fetch()

См. определение в файле yandex_run.php строка 614

◆ $site [2/3]

$site[ 'COMPANY_NAME'] = $COMPANY_NAME

См. определение в файле yandex_run.php строка 625

◆ $site [3/3]

$site[ 'SERVER_NAME'] = (string)$site['SERVER_NAME']

См. определение в файле yandex_run.php строка 628

◆ $SITE_ID

$SITE_ID = (isset($SITE_ID) ? (string)$SITE_ID : '')

См. определение в файле yandex_run.php строка 607

◆ $usedProtocol

if (empty( $arRunErrors)) $usedProtocol = (isset($USE_HTTPS) && $USE_HTTPS == 'Y' ? 'https://' : 'http://')

См. определение в файле yandex_run.php строка 899

◆ $USER

global $USER

См. определение в файле yandex_run.php строка 56

◆ $vatExport

$vatExport = $vatExportSettings['ENABLE'] == 'Y'

См. определение в файле yandex_run.php строка 920

◆ $vatExportSettings

$vatExportSettings
Инициализатор
'ENABLE' => 'N',
'BASE_VAT' => ''
)

См. определение в файле yandex_run.php строка 906

◆ $vatList

$vatList = array()

См. определение в файле yandex_run.php строка 916

◆ $vatRates

$vatRates
Инициализатор
'0%' => 'VAT_0',
'10%' => 'VAT_10',
'18%' => 'VAT_18'
)

См. определение в файле yandex_run.php строка 911

◆ $yandexFormat

$yandexFormat = 'none'

См. определение в файле yandex_run.php строка 495

◆ $yandexNeedPropertyIds

$yandexNeedPropertyIds = array()

См. определение в файле yandex_run.php строка 537

◆ else

if ( $firstStep) else
Инициализатор
{
$ar_iblock['PROPERTY'] = array()
$ar_iblock['DETAIL_PAGE_URL']
Определения yandex_run.php:600

См. определение в файле yandex_run.php строка 581