コード例 #1
0
ファイル: model.php プロジェクト: netconstructor/forkcms
 /**
  * Get dashboard data from the cache
  *
  * @return	array
  * @param	int $startTimestamp		The start timestamp for the cache file.
  * @param	int $endTimestamp		The end timestamp for the cache file.
  */
 public static function getDashboardDataFromCache($startTimestamp, $endTimestamp)
 {
     // doesnt exist in cache - load cache xml file
     if (!isset(self::$dashboardData) || empty(self::$dashboardData)) {
         self::$dashboardData = self::getCacheFile($startTimestamp, $endTimestamp);
     }
     // return data
     return self::$dashboardData;
 }