Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version für Contao ^4.13 und PHP8 #22

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[![Latest Version on Packagist](http://img.shields.io/packagist/v/hschottm/contao-survey.svg?style=flat)](https://packagist.org/packages/hschottm/contao-survey)
[![Installations via composer per month](http://img.shields.io/packagist/dm/hschottm/contao-survey.svg?style=flat)](https://packagist.org/packages/hschottm/contao-survey)
[![Installations via composer total](http://img.shields.io/packagist/dt/hschottm/contao-survey.svg?style=flat)](https://packagist.org/packages/hschottm/contao-survey)

# contao-survey
A contao bundle to create online surveys. Supports multiple choice questions, openended questions, matrix questions and constant sum questions. Surveys can be run as anonymized or personalized surveys for specific members. Anonymized surveys can limited to TAN access only to run a representative survey.

Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name":"hschottm/contao-survey",
"name":"arminfrey/contao-survey",
"description":"Contao bundle to create questionnaires and run online surveys",
"keywords":["contao", "module", "extension", "survey", "bundle"],
"type":"contao-bundle",
Expand All @@ -11,9 +11,8 @@
}
],
"require":{
"php": ">=5.6.0",
"contao/core-bundle":"~4.4",
"hschottm/contao-textwizard":"~3.2",
"hschottm/contao-textwizard":"^3.4",
"sonata-project/exporter": "^1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/classes/SurveyQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function clearStatistics()
$this->arrStatistics = [];
}

public function exportDataToExcel($sheet, &$row)
public function exportDataToExcel(&$exporter, $sheet, &$row)
{
// overwrite in parent classes
return [];
Expand Down
6 changes: 1 addition & 5 deletions src/Resources/contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ class tl_content_survey extends tl_content
*
* @return array
*/
public function getSurveyTemplates(DataContainer $dc)
public function getSurveyTemplates()
{
if (version_compare(VERSION.BUILD, '2.9.0', '>=')) {
return $this->getTemplateGroup('ce_survey', $dc->activeRecord->pid);
}

return $this->getTemplateGroup('ce_survey');
}
}
6 changes: 1 addition & 5 deletions src/Resources/contao/dca/tl_survey_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,8 @@ class tl_survey_page extends Backend
*
* @return array
*/
public function getSurveyTemplates(DataContainer $dc)
public function getSurveyTemplates(DataContainer $dc): array
{
if (version_compare(VERSION.BUILD, '2.9.0', '>=')) {
return $this->getTemplateGroup('survey_', $dc->activeRecord->pid);
}

return $this->getTemplateGroup('survey_');
}

Expand Down