امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
\XF\ControllerPlugin\Reaction::actionReactions
PHP:
Read more
PHP:
کد:
$reactionsFinder = $reactionRepo->findContentReactions($contentType, $contentId, $reactionId)
->limitByPage($page, $perPage, 1);
$reactions = $reactionsFinder->fetch();
if (!count($reactions))
{
return $this->message(\XF::phrase('no_one_has_reacted_to_this_content_yet'));
}
$hasNext = count($reactions) > $perPage;
$reactions = $reactions->slice(0, $perPage);
$tabSummary = $reactionRepo->getContentTabSummary($contentType...
Read more
