Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
appresource.php
1<?php
2
3namespace Bitrix\MobileApp;
4
8
9
11{
12 private static $map = array();
13
14 private static function getMap()
15 {
16 if(empty(self::$map))
17 {
18 self::$map = include(Application::getDocumentRoot() . "/bitrix/modules/mobileapp/maps/resources.php");
19 }
20 return self::$map;
21 }
22
23 public static function get($platform_id)
24 {
25 $map = self::getMap();
26 return $map[$platform_id];
27 }
28
29 public static function getIconsSet($platform_id)
30 {
31 $map = self::getMap();
32 return $map[$platform_id]["icon"];
33 }
34
35
36 public static function getImagesSet($platform_id)
37 {
38 $map = self::getMap();
39 return $map[$platform_id]["launch"];
40 }
41
42 public static function getAdditionalSet($platform_id)
43 {
44 $map = self::getMap();
45 return $map[$platform_id]["additional"];
46 }
47}
static getIconsSet($platform_id)
static getAdditionalSet($platform_id)
static getImagesSet($platform_id)