src/snac/server/database/DBUtil.php
/**
     * Add Not-Same Assertion
     *
     * Adds a not-same assertion between the two constellations given as parameters.  Assumes that the not_same table is
     * bi-directional and only inserts one direction in the table.
     *
     * @param \snac\data\Constellation $constellation1 The first constellation
     * @param \snac\data\Constellation $constellation2 The second constellation
     * @param \snac\data\User $user The user making the not-same assertion
     * @param string $assertion The note/reason to include for the assertion
     * @return boolean true on success, false otherwise
     */
Add Not-Same Assertion
Adds a not-same assertion between the two constellations given as parameters.  Assumes that the not_same table is
bi-directional and only inserts one direction in the table.


Add Not - Same Assertion Adds a not - same assertion between the two constellations given as parameters . Assumes that the not_same table is bi - directional and only inserts one direction in the table .
public function addNotSameAssertion(&$constellation1, &$constellation2, &$user, $assertion) {
        if ($constellation1 === null || $constellation2 === null || $user == null || $assertion == null)
            return false;
        if ($constellation1->getID() === null || $constellation2->getID() === null)
            return false;
        $this->sql->addNotSameAssertion($constellation1->getID(), $constellation2->getID(),
                                        $user->getUserID(), $assertion);
        return true;
    }
public function addNotSameAssertion ( & $ constellation1 , & $ constellation2 , & $ user , $ assertion ) { if ( $ constellation1 === null || $ constellation2 === null || $ user == null || $ assertion == null ) return false ; if ( $ constellation1 -> getID ( ) === null || $ constellation2 -> getID ( ) === null ) return false ; $ this -> sql -> addNotSameAssertion ( $ constellation1 -> getID ( ) , $ constellation2 -> getID ( ) , $ user -> getUserID ( ) , $ assertion ) ; return true ; }
Add Not-Same Assertion
 Adds a not-same assertion between the two constellations given as parameters.
Add Not - Same Assertion Adds a not - same assertion between the two constellations given as parameters .