boolean, disabled=>false */ function checkRelevanceStatus($ia, $aQuestionAttributes){ $status=array('hidden'=>false,'disabled'=>false); if (isset($_SESSION['relevanceStatus'][$rowname]) && !$_SESSION['relevanceStatus'][$rowname]) { // If using exclude_all_others, then need to know whether irrelevant rows should be hidden or disabled if (isset($aQuestionAttributes['exclude_all_others'])) { $disableit=false; foreach(explode(';',trim($aQuestionAttributes['exclude_all_others'])) as $eo) { $eorow = $ia[1] . $eo; if ((!isset($_SESSION['relevanceStatus'][$eorow]) || $_SESSION['relevanceStatus'][$eorow]) && (isset($_SESSION[$eorow]) && $_SESSION[$eorow] == "Y")) { $disableit = true; } } if ($disableit) { $status['disabled']=true; } else { if (!isset($aQuestionAttributes['array_filter_style']) || $aQuestionAttributes['array_filter_style'] == '0') { $status['hidden']=true; } else { $status['disabled']=true; } } } else { if (!isset($aQuestionAttributes['array_filter_style']) || $aQuestionAttributes['array_filter_style'] == '0') { $status['hidden']=true; } else { $status['disabled']=true; } } } }