You are here

function pSpring::checkConnection in Visitors 7

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

File

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

Class

pSpring

Code

function checkConnection($SourceID, $TargetID) {
  if (isset($this->Data[$SourceID]["Connections"])) {
    foreach ($this->Data[$SourceID]["Connections"] as $Key => $ConnectionID) {
      if ($TargetID == $ConnectionID) {
        return TRUE;
      }
    }
  }
  $this->Data[$SourceID]["Connections"][] = $TargetID;
}