Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
name.php
1<?php
2
4
7
8final class Name implements IConfigField
9{
16 static function getDefaultValue()
17 {
18 return ['name' => Config\Option::get('main','site_name',null) ?? (defined('SITE_SERVER_NAME')? SITE_SERVER_NAME : '')];
19 }
20
27 static function checkValue($value): bool
28 {
29 return is_array($value) && array_key_exists('name',$value) && is_string($value['name']);
30 }
31
35 static function available(): bool
36 {
37 return true;
38 }
39
43 static function required(): bool
44 {
45 return true;
46 }
47
48 public static function prepareValue($value)
49 {
50 return $value;
51
52 }
53}