69 $this->request = Main\Context::getCurrent()->getRequest();
80 $this->request =
null;
143 $list += static::getSliderOptions();
145 $this->urlParams = array_filter($list, [__CLASS__,
'clearNull']);
179 case self::ENTITY_SECTION:
182 case self::ENTITY_ELEMENT:
190 abstract public function use(): bool;
295 if ($this->iblockId ===
null)
300 return 'IBLOCK_ID='.$this->iblockId
301 .
'&type='.urlencode($this->iblock[
'IBLOCK_TYPE_ID'])
302 .
'&lang='.urlencode($this->languageId);
312 return 'lang='.urlencode($this->languageId);
317 return 'urlBuilderId='.urlencode($this->
id);
322 $this->sliderMode = $mode;
340 .
'window.history.replaceState({}, \'\', \'' .
$path .
'\');
' . "\n"
341 . 'BX.ready(
function () {
' . "\n"
342 . ' BX.SidePanel.Instance.open(
' . "\n"
343 . ' \
'' .
$path .
'\'' .
"\n"
358 foreach ($urlList as
$url)
371 $this->
id = static::TYPE_ID;
372 $this->weight = static::TYPE_WEIGHT;
385 return $value !==
null;
390 $this->iblockId =
null;
391 $this->iblock =
null;
392 $this->iblockListMode =
null;
397 if ($this->iblockListMode !==
null)
402 if ($this->iblockId !==
null)
404 $listMode = (string)$this->iblock[
'LIST_MODE'];
416 $this->iblockListMode = $listMode;
427 $this->iblockListMode = $listMode;
454 if (is_array($value))
460 $result .=
'&'.urlencode($index).
'='.urlencode((
string)$value);
463 unset($index,
$key, $value);
469 if ($parentId !==
null)
471 if ($parentId === -1)
474 'find_section_section' => $parentId
480 'find_section_section' => $parentId,
481 'SECTION_ID' => $parentId,
482 'apply_filter' =>
'Y'
507 if ($compiledOptions !==
'')
511 unset($compiledOptions);
513 if ($additional !==
'')
533 if (empty($replaces))
537 return str_replace(array_keys($replaces), array_values($replaces),
$template);
542 $this->templateVariables[
$name] = $value;
560 $replaces[
'#PARENT_ID#'] = (string)$parentId;
568 $replaces[
'#ENTITY_ID#'] = (string)
$entityId;
576 $replaces[
'#PRODUCT_ID#'] = (string)
$entityId;
584 $replaces[
'#SECTION_ID#'] = (string)$sectionId;
591 return '&action=copy';
602 'IFRAME_TYPE' =>
'SIDE_SLIDER',
608 return $this->request->get(self::SLIDER_PATH_VARIABLE);
619 self::SLIDER_PATH_VARIABLE =>
$path,
630 return self::SLIDER_PATH_VARIABLE .
'=' .
$path;
639 if ($path ===
null ||
$path ===
'')
647 if (preg_match($mask,
$path, $prepared))
setIblockId(int $iblockId)
getUrlParams(array $options=[], string $additional='')
const PAGE_ELEMENT_DETAIL
getSectionListUrl(?int $parentId, array $options=[], string $additional='')
fillUrlTemplate(?string $template, array $replaces)
preloadElementUrlData(array $elementIds)
const PAGE_SECTION_DETAIL
checkCurrentPage(array $urlList)
setUrlParams(array $list)
setSliderMode(bool $mode)
getSectionSeoVariables(?int $sectionId, array $options=[], string $additional='')
getSectionSeoUrl(int $sectionId, array $options=[], string $additional='')
compileParamsLevel(string &$result, string $prefix, array $params)
getContextMenuItems(string $pageType, array $items=[], array $options=[])
getElementSearchUrl(array $options=[], string $additional='')
const PAGE_SECTION_SEARCH
getDetailVariables(string $page, ?int $entityId, array $options=[], string $additional='')
getCatalogSeoUrl(array $options=[], string $additional='')
preloadSectionUrlData(array $sectionIds)
setIblockListMode(string $listMode)
subscribeOnAfterSettingsSave()
getElementListUrl(?int $parentId, array $options=[], string $additional='')
setLanguageId(string $languageId)
getDetailSeoVariables(?int $entityId, array $options=[], string $additional='')
getSliderPathOption(string $path)
getElementDetailUrl(?int $entityId, array $options=[], string $additional='')
getSectionDetailUrl(?int $entityId, array $options=[], string $additional='')
checkSliderPath(?string $path)
getSliderPathString(string $path)
setPrefix(string $prefix)
getElementSaveUrl(?int $entityId, array $options=[], string $additional='')
const PAGE_ELEMENT_SEARCH
getElementCopyUrl(?int $entityId, array $options=[], string $additional='')
preloadUrlData(string $entityType, array $entityIds)
static getSliderOptions()
getSectionSearchUrl(array $options=[], string $additional='')
getCompiledParams(array $params)
getEntityFilter(?int $entityId)
getListVariables(string $page, ?int $parentId, array $options=[], string $additional='')
getParentFilter(?int $parentId)
compileUrlParams(array $params)
const SLIDER_PATH_VARIABLE
getUrlTemplate(string $templateId)
getElementSeoUrl(int $productId, array $options=[], string $additional='')
getExtendedVariables(array $options=[], string $additional='')
setTemplateVariable(string $name, string $value)
getSectionSaveUrl(?int $entityId, array $options=[], string $additional='')
extendUrl(array $options=[], string $additional='')
static get($moduleId, $name, $default="", $siteId=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
if(empty($signedUserToken)) $key
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']