|
|
|
|
|
|
|
|
'countUsersOnline' => $this->getUserModule()->getRepository()->countUsersOnline(), |
|
|
'countUsersOnline' => $this->getUserModule()->getRepository()->countUsersOnline(), |
|
|
'countTicketsAdminOpen' => $this->getTicketModule()->getRepository()->countTicketsAdminStatusOpen(), |
|
|
'countTicketsAdminOpen' => $this->getTicketModule()->getRepository()->countTicketsAdminStatusOpen(), |
|
|
'countTicketsAdminUnread' => $this->getTicketModule()->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()), |
|
|
'countTicketsAdminUnread' => $this->getTicketModule()->getRepository()->countTicketsAdminUnreadByUser($this->getUserCurrent()), |
|
|
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics5') ?: '' |
|
|
|
|
|
|
|
|
'statisticsCacheHtml' => \Yii::$app->cache->get('dashboard_statistics10') ?: '' |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function actionAjaxStatisticsHtml() |
|
|
public function actionAjaxStatisticsHtml() |
|
|
{ |
|
|
{ |
|
|
return \Yii::$app->cache->getOrSet('dashboard_statistics5', function () { |
|
|
|
|
|
|
|
|
return \Yii::$app->cache->getOrSet('dashboard_statistics10', function () { |
|
|
$producerModule = $this->getProducerModule(); |
|
|
$producerModule = $this->getProducerModule(); |
|
|
$pointSaleModule = $this->getPointSaleModule(); |
|
|
$pointSaleModule = $this->getPointSaleModule(); |
|
|
$userModule = $this->getUserModule(); |
|
|
$userModule = $this->getUserModule(); |