summaryrefslogtreecommitdiffstats
path: root/admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php
parentprvi-commit (diff)
download1ka-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/class.SurveyAdvancedParadataLog.php')
-rw-r--r--admin/survey/modules/mod_advanced_paradata/class.SurveyAdvancedParadataLog.php24
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;
}