1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
QueryDto.php
См. документацию.
1<?php
2
4
6
7final class QueryDto implements RequestDtoInterface
8{
9 public function __construct(
10 public readonly ?string $filterId = null,
11 public readonly ?int $fromYear = null,
12 public readonly ?int $fromMonth = null,
13 public readonly ?int $fromDate = null,
14 public readonly ?int $toYear = null,
15 public readonly ?int $toMonth = null,
16 public readonly ?int $toDate = null,
17 )
18 {
19 }
20
21 public static function fromRequest(array $request): self
22 {
23 return new self(
24 filterId: $request['filterId'] ?? null,
25 fromYear: $request['fromYear'] ? (int)$request['fromYear'] : null,
26 fromMonth: $request['fromMonth'] ? (int)$request['fromMonth'] : null,
27 fromDate: $request['fromDate'] ? (int)$request['fromDate'] : null,
28 toYear: $request['toYear'] ? (int)$request['toYear'] : null,
29 toMonth: $request['toMonth'] ? (int)$request['toMonth'] : null,
30 toDate: $request['toDate'] ? (int)$request['toDate'] : null,
31 );
32 }
33}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
__construct(public readonly ?string $filterId=null, public readonly ?int $fromYear=null, public readonly ?int $fromMonth=null, public readonly ?int $fromDate=null, public readonly ?int $toYear=null, public readonly ?int $toMonth=null, public readonly ?int $toDate=null,)
Определения QueryDto.php:9
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804