You are here

function pCache::autoOutput in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pCache.class.php \pCache::autoOutput()

File

pChart/class/pCache.class.php, line 216

Class

pCache

Code

function autoOutput($ID, $Destination = "output.png") {
  if (php_sapi_name() == "cli") {
    $this
      ->saveFromCache($ID, $Destination);
  }
  else {
    $this
      ->strokeFromCache($ID);
  }
}