function pImage::removeVOIDFromArray

5.x pImage.class.php pImage::removeVOIDFromArray($SerieName, $Values)
2 calls to pImage::removeVOIDFromArray()

File

inc/pchart/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);
}