You are here

function pImage::removeVOIDFromArray in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pImage.class.php \pImage::removeVOIDFromArray()
2 calls to pImage::removeVOIDFromArray()
pImage::replaceImageMapTitle in pChart/class/pImage.class.php
pImage::replaceImageMapValues in pChart/class/pImage.class.php

File

pChart/class/pImage.class.php, line 319

Class

pImage

Code

function removeVOIDFromArray($SerieName, $Values) {
  if (!isset($this->DataSet->Data["Series"][$SerieName])) {
    return -1;
  }
  $Result = "";
  foreach ($this->DataSet->Data["Series"][$SerieName]["Data"] as $Key => $Value) {
    if ($Value != VOID && isset($Values[$Key])) {
      $Result[] = $Values[$Key];
    }
  }
  return $Result;
}