Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
accountinstagram.php
1
<?
2
3
namespace
Bitrix\Seo\Analytics\Services
;
4
5
class
AccountInstagram
extends
AccountFacebook
6
{
7
const
TYPE_CODE
=
'instagram'
;
8
12
protected
function
getPublisherPlatforms
()
13
{
14
return
[
'instagram'
];
15
}
16
20
public
function
hasPublicPages
()
21
{
22
return
false
;
23
}
24
25
protected
function
prepareExpensesData
($data)
26
{
27
if
(is_array($data[
'actions'
]))
28
{
29
$actions = [];
30
foreach
($data[
'actions'
] as $action)
31
{
32
$actions[$action[
'action_type'
]] = $action[
'value'
];
33
}
34
35
$data[
'actions'
] = $actions[
'link_click'
]
36
+ $actions[
'post'
]
37
+ $actions[
'comment'
]
38
;
39
}
40
41
return
$data;
42
}
43
}
Bitrix\Seo\Analytics\Services\AccountFacebook
Definition
accountfacebook.php:16
Bitrix\Seo\Analytics\Services\AccountInstagram
Definition
accountinstagram.php:6
Bitrix\Seo\Analytics\Services\AccountInstagram\prepareExpensesData
prepareExpensesData($data)
Definition
accountinstagram.php:25
Bitrix\Seo\Analytics\Services\AccountInstagram\TYPE_CODE
const TYPE_CODE
Definition
accountinstagram.php:7
Bitrix\Seo\Analytics\Services\AccountInstagram\getPublisherPlatforms
getPublisherPlatforms()
Definition
accountinstagram.php:12
Bitrix\Seo\Analytics\Services\AccountInstagram\hasPublicPages
hasPublicPages()
Definition
accountinstagram.php:20
Bitrix\Seo\Analytics\Services
Definition
accountfacebook.php:3
modules
seo
lib
analytics
services
accountinstagram.php
Создано системой
1.10.0