Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
policy.php
1<?php
9
12
13Loc::loadLanguageFile(__FILE__);
14
19class Policy
20{
22 protected static $standardTextForLanguages = array('ru', 'ua', 'by');
23
25 protected static $requiredForLanguages = array('ru', 'by', 'ua');
26
33 public static function isRequired($languageId)
34 {
35 return in_array($languageId, self::$requiredForLanguages);
36 }
37
44 public static function hasText($languageId)
45 {
46 return in_array($languageId, self::$standardTextForLanguages);
47 }
48
54 public static function installDefault()
55 {
56 $languageId = Context::getCurrent()->getLanguage();
57 if (!self::isRequired($languageId) || !self::hasText($languageId))
58 {
59 return;
60 }
61
62
63 }
64}
static getCurrent()
Definition context.php:241
static loadLanguageFile($file, $language=null, $normalize=true)
Definition loc.php:224