3namespace Bitrix\MobileApp\Janative;
5use Bitrix\Main\IO\File;
6use Bitrix\Main\Web\Json;
18 $namespace = $defaultNamespace;
19 $name = $entityIdentifier;
20 $cacheId =
"$namespace:$name";
22 if(!isset(self::$descriptionCache[$cacheId]))
24 if (strpos($entityIdentifier,
":"))
26 [$namespace,
$name] = explode(
":", $entityIdentifier);
29 self::$descriptionCache[$cacheId] = [
31 "namespace" => $namespace,
32 "fullname" =>
"$namespace:$name",
33 "relativePath" =>
"$namespace/$name",
34 "defaultFullname" => $namespace && $namespace !=
"bitrix" ?
"$namespace:$name" :
$name
38 return self::$descriptionCache[$cacheId];
47 public static function jsonEncode($string,
$options = JSON_HEX_TAG | JSON_HEX_AMP | JSON_PRETTY_PRINT | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE)
49 return Json::encode($string,
$options);
53 return filectime($file->getPhysicalPath()) ??
"";
static getFileHash(File $file)
static array $descriptionCache
static extractEntityDescription($entityIdentifier, string $defaultNamespace="bitrix")
static jsonEncode($string, $options=JSON_HEX_TAG|JSON_HEX_AMP|JSON_PRETTY_PRINT|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_UNESCAPED_UNICODE)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)