1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ratings_components.php
См. документацию.
1
<?php
2
3
IncludeModuleLangFile
(
$_SERVER
[
"DOCUMENT_ROOT"
].
BX_ROOT
.
"/modules/iblock/general/ratings_components.php"
);
4
5
class
CRatingsComponentsIBlock
6
{
7
public
static
function
OnGetRatingContentOwner
(
$arParams
)
8
{
9
if
(
$arParams
[
'ENTITY_TYPE_ID'
] ==
'IBLOCK_ELEMENT'
)
10
{
11
$arItem = CIBlockElement::getList(
array
(),
array
(
'ID'
=> intval(
$arParams
[
'ENTITY_ID'
])),
false
,
false
,
array
(
'CREATED_BY'
));
12
if
(
$ar
= $arItem->fetch())
13
return
$ar
[
'CREATED_BY'
];
14
else
15
return
0;
16
}
17
elseif
(
$arParams
[
'ENTITY_TYPE_ID'
] ==
'IBLOCK_SECTION'
)
18
{
19
$arItem = CIBlockSection::getList(
array
(),
array
(
'ID'
=> intval(
$arParams
[
'ENTITY_ID'
])),
false
,
false
,
array
(
'CREATED_BY'
));
20
if
(
$ar
= $arItem->fetch())
21
return
$ar
[
'CREATED_BY'
];
22
else
23
return
0;
24
}
25
26
return
false
;
27
}
28
}
$arParams
$arParams
Определения
access_dialog.php:21
BX_ROOT
const BX_ROOT
Определения
bx_root.php:3
CRatingsComponentsIBlock
Определения
ratings_components.php:6
CRatingsComponentsIBlock\OnGetRatingContentOwner
static OnGetRatingContentOwner($arParams)
Определения
ratings_components.php:7
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
IncludeModuleLangFile
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
Определения
tools.php:3778
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$ar
$ar
Определения
options.php:199
bitrix
modules
iblock
classes
general
ratings_components.php
Создано системой
1.14.0