src/snac/server/database/DBUtil.php
/**
     * Build the Term Cache
     *
     * This function builds an entire copy of the term cache in memory.  It is too big to fit in memory, and therefore should
     * not be used.
     *
     * @deprecated
     */
Build the Term Cache
This function builds an entire copy of the term cache in memory.  It is too big to fit in memory, and therefore should
not be used.

@deprecated
Build the Term Cache This function builds an entire copy of the term cache in memory . It is too big to fit in memory and therefore should not be used . @deprecated
public function buildTermCache() {
        $vocab = $this->getAllVocabulary();
        foreach($vocab as $v) {
            $newObj = new \snac\data\Term();
            $newObj->setID($v['id']);
            $newObj->setType($v['type']); 
            $newObj->setTerm($v['value']);
            $newObj->setURI($v['uri']);
            $newObj->setDescription($v['description']);
            $this->termCache[$v["id"]] = $newObj;
        }
    }
public function buildTermCache ( ) { $ vocab = $ this -> getAllVocabulary ( ) ; foreach ( $ vocab as $ v ) { $ newObj = new \ snac \ data \ Term ( ) ; $ newObj -> setID ( $ v [ 'id' ] ) ; $ newObj -> setType ( $ v [ 'type' ] ) ; $ newObj -> setTerm ( $ v [ 'value' ] ) ; $ newObj -> setURI ( $ v [ 'uri' ] ) ; $ newObj -> setDescription ( $ v [ 'description' ] ) ; $ this -> termCache [ $ v [ " id " ] ] = $ newObj ; } }
Build the Term Cache
 This function builds an entire copy of the term cache in memory.
Build the Term Cache This function builds an entire copy of the term cache in memory .
// Fix up the vocabulary into a nested array // Was setDataType() but this is a vocaulary type. See Term.php. // Save this to the cache