1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
location.php
См. документацию.
1<?php
2
3namespace Bitrix\Landing\Assets;
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 {
18 return self::LOCATION_TEMPLATE;
19 }
20
26 public static function getAllLocations(): array
27 {
28 return [
29 self::LOCATION_BEFORE_ALL,
30 self::LOCATION_KERNEL,
31 self::LOCATION_TEMPLATE,
32 self::LOCATION_AFTER_TEMPLATE,
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 getAllLocations()
Определения location.php:26
static getDefaultLocation()
Определения location.php:16
static verifyLocation($location)
Определения location.php:43
const LOCATION_TEMPLATE
Определения location.php:9
const LOCATION_BEFORE_ALL
Определения location.php:7
const LOCATION_KERNEL
Определения location.php:8
const LOCATION_AFTER_TEMPLATE
Определения location.php:10
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$location
Определения options.php:2729