You are here

function pSpring::autoFreeZone in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pSpring.class.php \pSpring::autoFreeZone()
1 call to pSpring::autoFreeZone()
pSpring::firstPass in pChart/class/pSpring.class.php

File

pChart/class/pSpring.class.php, line 105

Class

pSpring

Code

function autoFreeZone() {

  /* Check connections reciprocity */
  foreach ($this->Data as $Key => $Settings) {
    if (isset($Settings["Connections"])) {
      $this->Data[$Key]["FreeZone"] = count($Settings["Connections"]) * 10 + 20;
    }
    else {
      $this->Data[$Key]["FreeZone"] = 20;
    }
  }
}