src/snac/server/database/SQL.php
/**
     * Insert into table resource_origination_name
     *
     * Write the given name into the origination name table for the resource (id, version)
     *
     * @param int $resourceID The resource ID
     * @param int $resourceVersion The resource version
     * @param int $id The id of this origination name (if null, one will be generated)
     * @param string $name The origination name
     *
     * @return integer $id The record id, which might be new if this is the first insert for this origination name.
     */
Insert into table resource_origination_name
Write the given name into the origination name table for the resource (id, version)

@param int $resourceID The resource ID
@param int $resourceVersion The resource version
@param int $id The id of this origination name (if null, one will be generated)
@param string $name The origination name

@return integer $id The record id, which might be new if this is the first insert for this origination name.
Insert into table resource_origination_name Write the given name into the origination name table for the resource ( id version ) @param int $resourceID The resource ID @param int $resourceVersion The resource version @param int $id The id of this origination name ( if null one will be generated ) @param string $name The origination name @return integer $id The record id which might be new if this is the first insert for this origination name .
public function insertOriginationName($resourceID, $resourceVersion,
                               $id,
                               $name)
    {
        if (! $id)
        {
            $id = $this->selectResourceID();
        }
        $qq = 'insert_origination_name';
        $this->sdb->prepare($qq,
                            'insert into resource_origination_name
                            (resource_id, version, id, name)
                            values
                            ($1, $2, $3, $4)');
        $execList = array($resourceID,
                          $resourceVersion,
                          $id,
                          $name);
        $this->sdb->execute($qq, $execList);
        $this->sdb->deallocate($qq);
        return $id;
    }
public function insertOriginationName ( $ resourceID , $ resourceVersion , $ id , $ name ) { if ( ! $ id ) { $ id = $ this -> selectResourceID ( ) ; } $ qq = 'insert_origination_name' ; $ this -> sdb -> prepare ( $ qq , 'insert into resource_origination_name
                            (resource_id, version, id, name)
                            values
                            ($1, $2, $3, $4)' ) ; $ execList = array ( $ resourceID , $ resourceVersion , $ id , $ name ) ; $ this -> sdb -> execute ( $ qq , $ execList ) ; $ this -> sdb -> deallocate ( $ qq ) ; return $ id ; }
Insert into table resource_origination_name
 Write the given name into the origination name table for the resource (id, version)
Insert into table resource_origination_name Write the given name into the origination name table for the resource ( id version )
/*
         * Combine vhInfo and the remaining args into a big array for execute().
         */