src/snac/server/database/DBUtil.php
/**
     * Populate Resource's Languages
     *
     * Reads the resource's languages from the database and populates them into the resource object
     *
     * @param  \snac\data\Resource $rObj Resource object to populate
     */
Populate Resource's Languages
Reads the resource's languages from the database and populates them into the resource object

@param  \snac\data\Resource $rObj Resource object to populate
Populate Resource ' s Languages Reads the resource ' s languages from the database and populates them into the resource object @param \ snac \ data \ Resource $rObj Resource object to populate
function populateResourceLanguages(&$rObj) {
        $languageRows = $this->sql->selectAllLanguagesForResource($rObj->getID(), $rObj->getVersion());
        foreach ($languageRows as $item)
        {
            $newObj = new \snac\data\Language();
            $newObj->setLanguage($this->populateTerm($item['language_id']));
            $newObj->setScript($this->populateTerm($item['script_id']));
            $newObj->setVocabularySource($item['vocabulary_source']);
            $newObj->setNote($item['note']);
            $newObj->setDBInfo($item['version'], $item['id']);
            $rObj->addLanguage($newObj);
        }
    }
function populateResourceLanguages ( & $ rObj ) { $ languageRows = $ this -> sql -> selectAllLanguagesForResource ( $ rObj -> getID ( ) , $ rObj -> getVersion ( ) ) ; foreach ( $ languageRows as $ item ) { $ newObj = new \ snac \ data \ Language ( ) ; $ newObj -> setLanguage ( $ this -> populateTerm ( $ item [ 'language_id' ] ) ) ; $ newObj -> setScript ( $ this -> populateTerm ( $ item [ 'script_id' ] ) ) ; $ newObj -> setVocabularySource ( $ item [ 'vocabulary_source' ] ) ; $ newObj -> setNote ( $ item [ 'note' ] ) ; $ newObj -> setDBInfo ( $ item [ 'version' ] , $ item [ 'id' ] ) ; $ rObj -> addLanguage ( $ newObj ) ; } }
Populate Resource's Languages
 Reads the resource's languages from the database and populates them into the resource object
Populate Resource ' s Languages Reads the resource ' s languages from the database and populates them into the resource object