src/snac/server/database/DBUtil.php
/**
     * Read published by ARK
     *
     * Read a published constellation by ARK from the database.  If the constellation has ever been
     * split, it will return false.  This method will only return a constellation if the Ark given
     * only references one published constellation.
     *
     * Use the optional flags to get only a partial constellation.  The flags are a bit mask, and can
     * be ORed together.  Certain shortcut flags are available, such as:
     *
     * ```
     * $FULL_CONSTELLATION = $READ_NRD | $READ_ALL_NAMES | $READ_BIOGHIST
     *                       | $READ_BIOGHIST | $READ_RELATIONS
     *                       | $READ_OTHER_EXCEPT_RELATIONS
     * $READ_SHORT_SUMMARY = $READ_NRD | $READ_PREFERRED_NAME | $READ_BIOGHIST
     * ```
     *
     * @param string $arkID An ARK
     * @param int $flags optional Flags to indicate which parts of the constellation to read
     *
     * @return \snac\data\Constellation|boolean A PHP constellation object or false if none found.
     *
     */
Read published by ARK
Read a published constellation by ARK from the database.  If the constellation has ever been
split, it will return false.  This method will only return a constellation if the Ark given
only references one published constellation.

Use the optional flags to get only a partial constellation.  The flags are a bit mask, and can
be ORed together.  Certain shortcut flags are available, such as.



@param string $arkID An ARK
@param int $flags optional Flags to indicate which parts of the constellation to read

@return \snac\data\Constellation|boolean A PHP constellation object or false if none found.
Read published by ARK Read a published constellation by ARK from the database . If the constellation has ever been split it will return false . This method will only return a constellation if the Ark given only references one published constellation . Use the optional flags to get only a partial constellation . The flags are a bit mask and can be ORed together . Certain shortcut flags are available such as . @param string $arkID An ARK @param int $flags optional Flags to indicate which parts of the constellation to read @return \ snac \ data \ Constellation|boolean A PHP constellation object or false if none found .
public function readPublishedConstellationByARK($arkID, $flags=0)
    {
        $mainIDs = $this->sql->selectCurrentMainIDsForArk($arkID);
        if ($mainIDs != null && count($mainIDs) == 1)
        {
            $mainID = $mainIDs[0];
            $version = $this->sql->selectCurrentVersionByStatus($mainID, 'published');
            if ($version)
            {
                $cObj = $this->readConstellation($mainID, $version, $flags);
                return $cObj;
            }
        }
        return false;
    }
public function readPublishedConstellationByARK ( $ arkID , $ flags = 0 ) { $ mainIDs = $ this -> sql -> selectCurrentMainIDsForArk ( $ arkID ) ; if ( $ mainIDs != null && count ( $ mainIDs ) == 1 ) { $ mainID = $ mainIDs [ 0 ] ; $ version = $ this -> sql -> selectCurrentVersionByStatus ( $ mainID , 'published' ) ; if ( $ version ) { $ cObj = $ this -> readConstellation ( $ mainID , $ version , $ flags ) ; return $ cObj ; } } return false ; }
Read published by ARK
 Read a published constellation by ARK from the database.
Read published by ARK Read a published constellation by ARK from the database .