lifetime; } public function getKey($id = null) { return 'site_global_stat'; } public function getContent($id = null) { $courseRepo = new CourseRepo(); $articleRepo = new ArticleRepo(); $questionRepo = new QuestionRepo(); $answerRepo = new AnswerRepo(); $commentRepo = new CommentRepo(); $consultRepo = new ConsultRepo(); $packageRepo = new PackageRepo(); $reviewRepo = new ReviewRepo(); $topicRepo = new TopicRepo(); $userRepo = new UserRepo(); return [ 'course_count' => $courseRepo->countCourses(), 'article_count' => $articleRepo->countArticles(), 'question_count' => $questionRepo->countQuestions(), 'answer_count' => $answerRepo->countAnswers(), 'comment_count' => $commentRepo->countComments(), 'consult_count' => $consultRepo->countConsults(), 'vip_count' => $userRepo->countVipUsers(), 'package_count' => $packageRepo->countPackages(), 'review_count' => $reviewRepo->countReviews(), 'topic_count' => $topicRepo->countTopics(), 'user_count' => $userRepo->countUsers(), ]; } }