1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ListDto.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\OpenEvents\Controller\Request\EventCategory;
4
5use Bitrix\Calendar\OpenEvents\Controller\Request\RequestDtoInterface;
6
7final class ListDto implements RequestDtoInterface
8{
9 public function __construct(
10 readonly public ?bool $isBanned = null,
11 readonly public ?string $query = null,
12 readonly public ?int $page = null,
13 readonly public ?int $categoryId = null,
14 )
15 {
16 }
17
18 public static function fromRequest(array $request): self
19 {
20 $isBanned = $request['isBanned'] ?? null;
21 $query = $request['query'] ?? null;
22 $page = max(0, (int)($request['page'] ?? 0));
23 $categoryId = $request['categoryId'] ?? null;
24
25 return new self(
26 isBanned: $isBanned === null ? null : $isBanned === 'true',
27 query: $query,
28 page: $page,
29 categoryId: $categoryId,
30 );
31 }
32}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
__construct(readonly public ?bool $isBanned=null, readonly public ?string $query=null, readonly public ?int $page=null, readonly public ?int $categoryId=null,)
Определения ListDto.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
$query
Определения get_search.php:11
$page
Определения order_form.php:33