/** * enter - class method * change to selected translation * @static * @param smdoc $foowd Reference to the foowd environment object. */ function class_enter(&$foowd) { $translation_id = new input_querystring('langid'); $foowd->track('foowd_workspace->class_enter', $translation_id->value); $uri_arr = array(); if ($translation_id->wasSet && $translation_id->wasValid && smdoc_translation::enterWorkspace($foowd, $translation_id->value)) { if ($translation_id->value == 0) { $_SESSION['ok'] = USER_DEFAULT_TRANSLATION; } else { $_SESSION['ok'] = USER_NEW_TRANSLATION; } $uri_arr['objectid'] = $translation_id->value; $uri_arr['classid'] = TRANSLATION_CLASS_ID; } else { $_SESSION['error'] = WORKSPACE_CHANGE_FAILED; } $foowd->track(); // $foowd->loc_forward( getURI($uri_arr, FALSE) ); // exit; }