getArchiveNumbers() public static method

Get the statistics for the archive
public static getArchiveNumbers ( ) : array
return array
Example #1
0
 /**
  * Parse
  */
 private function parse()
 {
     // we will cache this widget for 24 hours
     $this->tpl->cache(FRONTEND_LANGUAGE . '_blogWidgetArchiveCache', 24 * 60 * 60);
     // if the widget isn't cached, assign the variables
     if (!$this->tpl->isCached(FRONTEND_LANGUAGE . '_blogWidgetArchiveCache')) {
         // get the numbers
         $this->tpl->assign('widgetBlogArchive', FrontendBlogModel::getArchiveNumbers());
     }
 }
Example #2
0
 /**
  * Parse
  */
 private function parse()
 {
     $this->tpl->assign('widgetBlogArchive', FrontendBlogModel::getArchiveNumbers());
 }