示例#1
0
文件: genes.php 项目: LOVDnl/LOVD3
     $aRefseqGenomic[] = $_SETT['human_builds'][$_CONF['refseq_build']]['ncbi_sequences'][$zData['chromosome']];
     if (!isset($_SESSION['work'][$sPath])) {
         $_SESSION['work'][$sPath] = array();
     }
     while (count($_SESSION['work'][$sPath]) >= 5) {
         unset($_SESSION['work'][$sPath][min(array_keys($_SESSION['work'][$sPath]))]);
     }
     // Generate an unique workID that is sortable.
     $_POST['workID'] = (string) microtime(true);
     $_SESSION['work'][$sPath][$_POST['workID']]['values']['genomic_references'] = $aRefseqGenomic;
 }
 // This passes on the new list of genomic reference sequences to getForm(), which globals this variable.
 $zData['genomic_references'] = $_SESSION['work'][$sPath][$_POST['workID']]['values']['genomic_references'];
 if (count($_POST) > 1) {
     lovd_errorClean();
     $_DATA->checkFields($_POST, $zData);
     if (!lovd_error()) {
         // Fields to be used.
         $aFields = array('name', 'chrom_band', 'imprinting', 'refseq_genomic', 'reference', 'url_homepage', 'url_external', 'allow_download', 'allow_index_wiki', 'show_hgmd', 'show_genecards', 'show_genetests', 'note_index', 'note_listing', 'refseq', 'refseq_url', 'disclaimer', 'disclaimer_text', 'header', 'header_align', 'footer', 'footer_align', 'created_date', 'edited_by', 'edited_date');
         if (empty($zData['refseq_UD'])) {
             require ROOT_PATH . 'class/soap_client.php';
             $_Mutalyzer = new LOVD_SoapClient();
             try {
                 $sRefseqUD = lovd_getUDForGene($_CONF['refseq_build'], $sID);
                 $_POST['refseq_UD'] = $sRefseqUD;
                 $aFields[] = 'refseq_UD';
             } catch (SoapFault $e) {
             }
             // Silent error.
         }
         // Prepare values.