You are here

function pCache::autoOutput in Visitors 7

Same name and namespace in other branches
  1. 7.2 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);
  }
}