Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
config.php
1
<?php
2
namespace
Bitrix\Seo\Controller\Business
;
3
4
use
Bitrix\Main
;
5
use
Bitrix\Seo\BusinessSuite\Configuration\Facebook
;
6
use
Bitrix\Seo\BusinessSuite\Configuration\IConfig
;
7
use
Bitrix\Seo\BusinessSuite\Exception\ConfigLoadException
;
8
use
Bitrix\Seo\BusinessSuite\Exception\UnknownFieldException
;
9
10
final
class
Config
extends
Main\Engine\Controller
11
{
19
public
function
defaultAction
():
IConfig
20
{
21
try
22
{
23
$current = $this->
loadAction
();
24
}
25
finally
26
{
27
return
$current ?? Facebook\Config::default();
28
}
29
}
30
37
public
function
loadAction
():
IConfig
38
{
39
return
Facebook\Config::load();
40
}
41
48
public
function
saveAction
(array $config)
49
{
50
return
Facebook\Config::loadFromArray($config)->save();
51
}
52
}
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Seo\BusinessSuite\Exception\ConfigLoadException
Definition
configloadexception.php:10
Bitrix\Seo\BusinessSuite\Exception\UnknownFieldException
Definition
unknownfieldexception.php:7
Bitrix\Seo\Controller\Business\Config\saveAction
saveAction(array $config)
Definition
config.php:48
Bitrix\Seo\Controller\Business\Config\loadAction
loadAction()
Definition
config.php:37
Bitrix\Seo\Controller\Business\Config\defaultAction
defaultAction()
Definition
config.php:19
Bitrix\Seo\BusinessSuite\Configuration\IConfig
Definition
iconfig.php:9
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Main
Bitrix\Seo\BusinessSuite\Configuration\Facebook
Definition
config.php:2
Bitrix\Seo\Controller\Business
Definition
config.php:2
modules
seo
lib
controller
business
config.php
Создано системой
1.10.0