src/snac/server/database/SQL.php
/**
     * Read Assertion
     *
     * Reads out the assertion data from the database for the given type between
     * these two Constellation IDs.  If none exists, it will return null.
     *
     * @param string $type The type of the assertion (i.e. "not_same")
     * @param int $icid1 One IC ID
     * @param int $icid2 Another IC ID
     * @return string[]|null The array of data or null if no assertion exists
     */
Read Assertion
Reads out the assertion data from the database for the given type between
these two Constellation IDs.  If none exists, it will return null.

@param string $type The type of the assertion
@param int $icid1 One IC ID
@param int $icid2 Another IC ID
@return string[]|null The array of data or null if no assertion exists
Read Assertion Reads out the assertion data from the database for the given type between these two Constellation IDs . If none exists it will return null . @param string $type The type of the assertion @param int $icid1 One IC ID @param int $icid2 Another IC ID @return string [] |null The array of data or null if no assertion exists
public function readAssertion($type, $icid1, $icid2) {
        if ($type == "not_same") {
            $result = $this->sdb->query("select * from not_same where
                (ic_id1 = $1 and ic_id2 = $2) or (ic_id2 = $1 and ic_id1 = $2);",
                array($icid1, $icid2));
            $all = array();
            while($row = $this->sdb->fetchrow($result)) {
                array_push($all, $row);
            }
            if (count($all) != 1) {
                return null;
            }
            $return = $all[0];
            $return["type"] = $type;
            return $return;
        }
        return null;
    }
public function readAssertion ( $ type , $ icid1 , $ icid2 ) { if ( $ type == " not_same " ) { $ result = $ this -> sdb -> query ( " select * from not_same where
                (ic_id1 = $1 and ic_id2 = $2) or (ic_id2 = $1 and ic_id1 = $2); " , array ( $ icid1 , $ icid2 ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row ) ; } if ( count ( $ all ) != 1 ) { return null ; } $ return = $ all [ 0 ] ; $ return [ " type " ] = $ type ; return $ return ; } return null ; }
Read Assertion
 Reads out the assertion data from the database for the given type between
 these two Constellation IDs.
Read Assertion Reads out the assertion data from the database for the given type between these two Constellation IDs .