init($sid); self::$SDF->prepareFiles(); self::$headFileName = self::$SDF->getHeaderFileName(); self::$dataFileName = self::$SDF->getDataFileName(); self::$dataFileStatus = self::$SDF->getStatus(); self::$_HEADERS = self::$SDF->getHeader(); } public static function displayVariables() { global $lang; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach (self::$_HEADERS AS $skey => $spremenljivka) { if (isset($spremenljivka['tip']) && is_numeric($spremenljivka['tip']) && $spremenljivka['tip'] != '' && $spremenljivka['tip'] != 'm' && $spremenljivka['tip'] != 'sm') { $spss = $spremenljivka['grids'][0]['variables'][0]['spss']; $spss_type = substr($spss,0,1); $spss_length = explode('.',substr($spss,1)); $spr_id = explode('_',$skey); $spr_id = $spr_id[0]; $legenda = Cache::spremenljivkaLegenda($spr_id); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } echo '
'.$lang['srv_variableView_h_name'].''.$lang['srv_variableView_h_type'].''.$lang['srv_variableView_h_measure'].''.$lang['srv_variableView_h_label'].'
'.$spremenljivka['variable'].''.$legenda['izrazanje'].''.$legenda['skala'].''.((strlen($spremenljivka['naslov']) > 100) ? substr($spremenljivka['naslov'], 0, 97).'...' : $spremenljivka['naslov']).'
'; } }