diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/modules/mod_advanced_paradata | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to 'admin/survey/modules/mod_advanced_paradata')
-rw-r--r-- | admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php b/admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php index 267231a..acaef1f 100644 --- a/admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php +++ b/admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php @@ -17,26 +17,18 @@ class SurveyAdvancedParadataLog { // Privatni construct, ki ga 1x poklice getInstance
- private function __construct (/*$anketa*/) {
+ private function __construct () {
- /*ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);*/
-
- // Ce imamo anketo
- /*if ((int)$anketa > 0){
- $this->anketa = $anketa;
- }*/
-
- $this->anketa = (int)$_REQUEST['anketa'];
- //$this->anketa = $anketa_id;
+ if((isset($_GET['m']) && $_GET['m'] == 'quick_edit') || (isset($_GET['t']) && $_GET['t'] == 'postprocess'))
+ return false;
+
+ $anketa_hash = $_REQUEST['anketa'];
+ $this->anketa = getSurveyIdFromHash($anketa_hash);
if($this->anketa > 0){
SurveyInfo::getInstance()->SurveyInit($this->anketa);
$this->collectParadata = (SurveyInfo::getInstance()->checkSurveyModule('advanced_paradata')) ? true : false;
}
- else
- throw new Exception('Survey ID not set in class.SurveyAdvancedParadataLog.php !');
}
// Vrne instanco classa - da mamo singleton
@@ -50,6 +42,10 @@ class SurveyAdvancedParadataLog { // Vrne ce zbiramo napredne parapodatke
public function paradataEnabled(){
+
+ if((isset($_GET['m']) && $_GET['m'] == 'quick_edit') || (isset($_GET['t']) && $_GET['t'] == 'postprocess'))
+ return false;
+
return $this->collectParadata;
}
|