function pSpring::checkConnection in Visitors 7.2
Same name and namespace in other branches
- 7 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
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;
}