You are here

function pCache::GetHash in Visitors 8

Same name and namespace in other branches
  1. 7.2 pChart/class/pCache.class.php \pCache::getHash()
  2. 7 pChart/class/pCache.class.php \pCache::getHash()
  3. 7.0 pchart/pCache.inc \pCache::GetHash()
4 calls to pCache::GetHash()
pCache::DeleteFromCache in pchart/pCache.inc
pCache::GetFromCache in pchart/pCache.inc
pCache::IsInCache in pchart/pCache.inc
pCache::WriteToCache in pchart/pCache.inc

File

pchart/pCache.inc, line 106

Class

pCache

Code

function GetHash($ID, $Data) {
  $mKey = "{$ID}";
  foreach ($Data as $key => $Values) {
    $tKey = "";
    foreach ($Values as $Serie => $Value) {
      $tKey = $tKey . $Serie . $Value;
    }
    $mKey = $mKey . md5($tKey);
  }
  return md5($mKey);
}