Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
location.php
1<?php
2
4
6{
7 public const LOCATION_BEFORE_ALL = 1; // before all (critical). 1 to not equal with empty values (e.g. (int)null)
8 public const LOCATION_KERNEL = 50; // first
9 public const LOCATION_TEMPLATE = 100; // DEFAULT place
10 public const LOCATION_AFTER_TEMPLATE = 150; // last
11
16 public static function getDefaultLocation(): string
17 {
19 }
20
26 public static function getAllLocations(): array
27 {
28 return [
33 ];
34 }
35
36
43 public static function verifyLocation($location): int
44 {
45 if (
46 !isset($location)
47 || !in_array($location, self::getAllLocations(), true)
48 )
49 {
51 }
52
53 return $location;
54 }
55}
static verifyLocation($location)
Definition location.php:43