9namespace Bitrix\MobileApp\Designer;
11use Bitrix\Main\Application;
12use Bitrix\Main\IO\File;
13use Bitrix\Main\IO\Path;
14use Bitrix\Main\Localization\Loc;
15use Bitrix\Main\SystemException;
17Loc::loadMessages(__FILE__);
22 private static $configMap;
23 private static $configDescription;
34 private function createMap()
36 $mapFilePath = Application::getDocumentRoot() .
"/bitrix/modules/mobileapp/maps/config.php";
37 $file =
new File($mapFilePath);
38 if (!$file->isExists())
40 throw new SystemException(
"The map file '" . $mapFilePath .
"' doesn't exists!", 100);
43 $map = include($mapFilePath);
47 throw new SystemException(
"The map file does exist but has some broken structure.", 101);
50 self::$configMap =
$map;
51 self::$configMap[
"groups"] =
array();
54 foreach (
$map[
"types"] as $paramName => $intType)
56 if (in_array($intType, $groupTypes))
58 self::$configMap[
"groups"][] = $paramName;
67 if (!self::$configMap)
71 return self::$configMap;
81 if (self::$configDescription)
83 return self::$configDescription;
88 $mapTypes =
$map[
"types"];
89 self::$configDescription =
array();
95 return self::$configDescription;
110 if (!self::isGroup(
$name))
145 $paramsByType =
array();
148 if ($stringType ==
$desc[
"type"])
154 return $paramsByType;
174 return $map[
"groups"];
186 $types =
$map[
"types"];
187 return (array_key_exists($paramName, $types)
204 if (mb_strpos($paramName, $group) === 0)
220 return Loc::loadLanguageFile(Path::normalize(__FILE__));
228 public function has($paramName)
230 return array_key_exists($paramName, self::getDescriptionConfig());
239 private function getValueList($paramName)
242 return $map[
"listValues"][$paramName];
245 private function getLimits($paramName)
248 $limits =
$map[
"limits"][$paramName];
249 if (!is_array($limits))
getParamsByType($paramType)
getParamDescription($name, $type)
getGroupByParam($paramName)
static getStringType($intType)
const GROUP_BACKGROUND_LIGHT
static getDesc($type, $paramName=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description
if(mb_strlen($order)< 6) $desc
if(empty($signedUserToken)) $key