Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
baseapiobject.php
1
<?php
2
3
namespace
Bitrix\Seo\Checkout
;
4
9
class
BaseApiObject
10
{
11
const
TYPE_CODE
=
''
;
12
14
protected
$request
;
15
17
protected
$service
;
18
22
public
function
__construct
()
23
{
24
$this->request =
Request::create
(static::TYPE_CODE);
25
}
26
30
public
function
getRequest
()
31
{
32
return
$this->request
;
33
}
34
39
public
function
setRequest
(
Request
$request
)
40
{
41
$this->request =
$request
;
42
return
$this;
43
}
44
52
public
static
function
create
($type, $parameters =
null
,
IService
$service
=
null
)
53
{
54
$instance =
Factory::create
(get_called_class(), $type, $parameters);
55
if
(
$service
)
56
{
57
$instance->setService(
$service
);
58
}
59
60
return
$instance;
61
}
62
68
public
function
setService
(
IService
$service
)
69
{
70
$this->service =
$service
;
71
$this->request->setAuthAdapter($this->service->getAuthAdapter(static::TYPE_CODE));
72
73
return
$this;
74
}
75
}
Bitrix\Seo\Checkout\BaseApiObject
Definition
baseapiobject.php:10
Bitrix\Seo\Checkout\BaseApiObject\__construct
__construct()
Definition
baseapiobject.php:22
Bitrix\Seo\Checkout\BaseApiObject\TYPE_CODE
const TYPE_CODE
Definition
baseapiobject.php:11
Bitrix\Seo\Checkout\BaseApiObject\$request
$request
Definition
baseapiobject.php:14
Bitrix\Seo\Checkout\BaseApiObject\create
static create($type, $parameters=null, IService $service=null)
Definition
baseapiobject.php:52
Bitrix\Seo\Checkout\BaseApiObject\setRequest
setRequest(Request $request)
Definition
baseapiobject.php:39
Bitrix\Seo\Checkout\BaseApiObject\setService
setService(IService $service)
Definition
baseapiobject.php:68
Bitrix\Seo\Checkout\BaseApiObject\getRequest
getRequest()
Definition
baseapiobject.php:30
Bitrix\Seo\Checkout\BaseApiObject\$service
$service
Definition
baseapiobject.php:17
Bitrix\Seo\Checkout\Factory\create
static create($object, $type, $parameters=null)
Definition
factory.php:20
Bitrix\Seo\Checkout\Request
Definition
request.php:15
Bitrix\Seo\Checkout\Request\create
static create($type)
Definition
request.php:104
Bitrix\Seo\Checkout\IService
Definition
iservice.php:10
Bitrix\Seo\Checkout
Definition
authadapter.php:3
modules
seo
lib
checkout
baseapiobject.php
Создано системой
1.10.0