Example #1
0
function isSurveySection($seid)
{
    // forgo any checks if existing section
    if (trim($seid) == "" || !is_numeric($seid)) {
        return false;
    }
    /* forego checks below */
    if (Config::checkComponents() == false) {
        return true;
    }
    global $currentseid;
    if ($seid == $currentseid) {
        return true;
    }
    global $survey;
    $secs = $survey->getSectionIdentifiers();
    foreach ($secs as $sec) {
        if ($sec == $seid) {
            return true;
        }
    }
    return false;
}