public function checkConnection($SourceID, $TargetID)
    {
        if (isset($this->Data[$SourceID]["Connections"])) {
            foreach ($this->Data[$SourceID]["Connections"] as $ConnectionID) {
                if ($TargetID == $ConnectionID) {
                    return true;
                }
            }
        }
        $this->Data[$SourceID]["Connections"][] = $TargetID;
    }
public function checkConnection($SourceID, $TargetID)
    {
        if (isset($this->Data[$SourceID]["Connections"])) {
            foreach ($this->Data[$SourceID]["Connections"] as $ConnectionID) {
                if ($TargetID == $ConnectionID) {
                    return true;
                }
            }
        }
        $this->Data[$SourceID]["Connections"][] = $TargetID;
    }
public function checkConnection ( $ SourceID , $ TargetID ) { if ( isset ( $ this -> Data [ $ SourceID ] [ "Connections" ] ) ) { foreach ( $ this -> Data [ $ SourceID ] [ "Connections" ] as $ ConnectionID ) { if ( $ TargetID == $ ConnectionID ) { return true ; } } } $ this -> Data [ $ SourceID ] [ "Connections" ] [ ] = $ TargetID ; }
Check if a connection exists and create it if required
@param string|int $SourceID
@param string|int $TargetID
@return boolean|null
Check if a connection exists and create it if required