RomanL 8 лет назад
Родитель
Сommit
2908ceddc5
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      modules/boonex/charts/classes/BxChartsDb.php

+ 6 - 0
modules/boonex/charts/classes/BxChartsDb.php

@@ -91,6 +91,12 @@ class BxChartsDb extends BxBaseModGeneralDb
         return $this->getAll("SELECT SUM(`followers_count`) AS followers_count, `object_id`, `profile_module` as `module` FROM `" . $this->_sTableMostFollowedProfiles . "` GROUP BY `object_id`, `module` ORDER BY SUM(`followers_count`) DESC LIMIT 0," . intval(getParam('bx_charts_chart_most_followed_profiles_count')));
     }
     
+    /* Growth part */
+    public function getStatistic()
+    {
+        return $this->getAll("SELECT * FROM `sys_statistics` WHERE 1 ORDER BY `order`");
+    }
+
     /* Growth part */
     public function getGrowth($sTableName)
     {