This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

52
module/CacheParam.mod.php Normal file
View File

@@ -0,0 +1,52 @@
<?
/**
* $Id: CacheParam.mod.php 394 2008-05-28 19:28:03Z dakl $
* Paramerty chache dla poszczegolnych elementow
*
*/
class CacheParam {
/**
* Globalny parametr uzywany wszedzie tam, gdzie nie jest zdefiniowane inaczej
*
* @var unknown_type
*/
public static $global = '30';
/**
* Cache dla strony z modelkami
*
* @var unknown_type
*/
public static $modelkiController = '10';
/**
* Cache dla bloku polecamy
*
* @var unknown_type
*/
public static $sharedRecommend = '60';
/**
* Cache dla strony glownej
*
* @var unknown_type
*/
public static $indexController = '10';
/**
* Metoda do pobierania konkretnego parametru
*
* @param string $param
* @return int
*/
public static function Get($param) {
if(isset(self::$$param)) {
return self::$$param;
}
else {
return self::$global;
}
}
}
?>