Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: QuestionType modelation has begun
- Loading branch information
Showing
80 changed files
with
1,587 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/5PointChoice/DataSetFivePointChoice.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetFivePointChoice extends QuestionBaseDataSet {} |
2 changes: 2 additions & 0 deletions
2
...ionTypeRenderer/RenderFivePointChoice.php → ...es/5PointChoice/RenderFivePointChoice.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
|
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/Array10ChoiceQuestions/DataSetArray5ChoiceQuestion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArray5ChoiceQuestion extends QuestionBaseDataSet {} |
53 changes: 53 additions & 0 deletions
53
application/core/QuestionTypes/Array10ChoiceQuestions/RenderArray10ChoiceQuestion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
* 0 => string qid | ||
* 1 => string sgqa | ||
* 2 => string questioncode | ||
* 3 => string question | ||
* 4 => string type | ||
* 5 => string gid | ||
* 6 => string mandatory, | ||
* 7 => string conditionsexist, | ||
* 8 => string usedinconditions | ||
* 0 => string used in group.php for question count | ||
* 10 => string new group id for question in randomization group (GroupbyGroup Mode) | ||
* | ||
*/ | ||
class RenderArray10ChoiceQuestion extends QuestionBaseRenderer | ||
{ | ||
public function getMainView() | ||
{ | ||
return '/survey/questions/answer/dummy/answer'; | ||
} | ||
|
||
public function getRows() | ||
{ | ||
return; | ||
} | ||
|
||
public function render($sCoreClasses = '') | ||
{ | ||
$answer = ''; | ||
$inputnames = []; | ||
|
||
if (!empty($this->getQuestionAttribute('time_limit', 'value'))) { | ||
$answer .= $this->getTimeSettingRender(); | ||
} | ||
|
||
$answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView(), array( | ||
'ia'=>$this->aFieldArray, | ||
'name'=>$this->sSGQA, | ||
'basename'=>$this->sSGQA, | ||
'content' => $this->oQuestion, | ||
'coreClass'=> 'ls-answers '.$sCoreClasses, | ||
), true); | ||
|
||
$inputnames[] = []; | ||
return array($answer, $inputnames); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/Array5ChoiceQuestions/DataSetArray5ChoiceQuestion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArray5ChoiceQuestion extends QuestionBaseDataSet {} |
53 changes: 53 additions & 0 deletions
53
application/core/QuestionTypes/Array5ChoiceQuestions/RenderArray5ChoiceQuestion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
* 0 => string qid | ||
* 1 => string sgqa | ||
* 2 => string questioncode | ||
* 3 => string question | ||
* 4 => string type | ||
* 5 => string gid | ||
* 6 => string mandatory, | ||
* 7 => string conditionsexist, | ||
* 8 => string usedinconditions | ||
* 0 => string used in group.php for question count | ||
* 10 => string new group id for question in randomization group (GroupbyGroup Mode) | ||
* | ||
*/ | ||
class RenderArray5ChoiceQuestion extends QuestionBaseRenderer | ||
{ | ||
public function getMainView() | ||
{ | ||
return '/survey/questions/answer/dummy/answer'; | ||
} | ||
|
||
public function getRows() | ||
{ | ||
return; | ||
} | ||
|
||
public function render($sCoreClasses = '') | ||
{ | ||
$answer = ''; | ||
$inputnames = []; | ||
|
||
if (!empty($this->getQuestionAttribute('time_limit', 'value'))) { | ||
$answer .= $this->getTimeSettingRender(); | ||
} | ||
|
||
$answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView(), array( | ||
'ia'=>$this->aFieldArray, | ||
'name'=>$this->sSGQA, | ||
'basename'=>$this->sSGQA, | ||
'content' => $this->oQuestion, | ||
'coreClass'=> 'ls-answers '.$sCoreClasses, | ||
), true); | ||
|
||
$inputnames[] = []; | ||
return array($answer, $inputnames); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/ArrayFlexibleColumn/DataSetArrayFlexibleColumn.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArrayFlexibleColumn extends QuestionBaseDataSet {} |
53 changes: 53 additions & 0 deletions
53
application/core/QuestionTypes/ArrayFlexibleColumn/RendererArrayFlexibleColumn.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
* 0 => string qid | ||
* 1 => string sgqa | ||
* 2 => string questioncode | ||
* 3 => string question | ||
* 4 => string type | ||
* 5 => string gid | ||
* 6 => string mandatory, | ||
* 7 => string conditionsexist, | ||
* 8 => string usedinconditions | ||
* 0 => string used in group.php for question count | ||
* 10 => string new group id for question in randomization group (GroupbyGroup Mode) | ||
* | ||
*/ | ||
class RenderArrayFlexibleColumn extends QuestionBaseRenderer | ||
{ | ||
public function getMainView() | ||
{ | ||
return '/survey/questions/answer/dummy/answer'; | ||
} | ||
|
||
public function getRows() | ||
{ | ||
return; | ||
} | ||
|
||
public function render($sCoreClasses = '') | ||
{ | ||
$answer = ''; | ||
$inputnames = []; | ||
|
||
if (!empty($this->getQuestionAttribute('time_limit', 'value'))) { | ||
$answer .= $this->getTimeSettingRender(); | ||
} | ||
|
||
$answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView(), array( | ||
'ia'=>$this->aFieldArray, | ||
'name'=>$this->sSGQA, | ||
'basename'=>$this->sSGQA, | ||
'content' => $this->oQuestion, | ||
'coreClass'=> 'ls-answers '.$sCoreClasses, | ||
), true); | ||
|
||
$inputnames[] = []; | ||
return array($answer, $inputnames); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/ArrayFlexibleRow/DataSetArrayFlexibleRow.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArrayFlexibleRow extends QuestionBaseDataSet {} |
53 changes: 53 additions & 0 deletions
53
application/core/QuestionTypes/ArrayFlexibleRow/RenderArrayFlexibleRow.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
* 0 => string qid | ||
* 1 => string sgqa | ||
* 2 => string questioncode | ||
* 3 => string question | ||
* 4 => string type | ||
* 5 => string gid | ||
* 6 => string mandatory, | ||
* 7 => string conditionsexist, | ||
* 8 => string usedinconditions | ||
* 0 => string used in group.php for question count | ||
* 10 => string new group id for question in randomization group (GroupbyGroup Mode) | ||
* | ||
*/ | ||
class RenderArrayFlexibleRow extends QuestionBaseRenderer | ||
{ | ||
public function getMainView() | ||
{ | ||
return '/survey/questions/answer/dummy/answer'; | ||
} | ||
|
||
public function getRows() | ||
{ | ||
return; | ||
} | ||
|
||
public function render($sCoreClasses = '') | ||
{ | ||
$answer = ''; | ||
$inputnames = []; | ||
|
||
if (!empty($this->getQuestionAttribute('time_limit', 'value'))) { | ||
$answer .= $this->getTimeSettingRender(); | ||
} | ||
|
||
$answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView(), array( | ||
'ia'=>$this->aFieldArray, | ||
'name'=>$this->sSGQA, | ||
'basename'=>$this->sSGQA, | ||
'content' => $this->oQuestion, | ||
'coreClass'=> 'ls-answers '.$sCoreClasses, | ||
), true); | ||
|
||
$inputnames[] = []; | ||
return array($answer, $inputnames); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/ArrayMultiFlexNumbers/DataSetArrayMultiFlexNumbers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArrayMultiFlexNumbers extends QuestionBaseDataSet {} |
53 changes: 53 additions & 0 deletions
53
application/core/QuestionTypes/ArrayMultiFlexNumbers/RenderArrayMultiFlexNumbers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* RenderClass for Boilerplate Question | ||
* * The ia Array contains the following | ||
* 0 => string qid | ||
* 1 => string sgqa | ||
* 2 => string questioncode | ||
* 3 => string question | ||
* 4 => string type | ||
* 5 => string gid | ||
* 6 => string mandatory, | ||
* 7 => string conditionsexist, | ||
* 8 => string usedinconditions | ||
* 0 => string used in group.php for question count | ||
* 10 => string new group id for question in randomization group (GroupbyGroup Mode) | ||
* | ||
*/ | ||
class RenderArrayMultiFlexNumbers extends QuestionBaseRenderer | ||
{ | ||
public function getMainView() | ||
{ | ||
return '/survey/questions/answer/dummy/answer'; | ||
} | ||
|
||
public function getRows() | ||
{ | ||
return; | ||
} | ||
|
||
public function render($sCoreClasses = '') | ||
{ | ||
$answer = ''; | ||
$inputnames = []; | ||
|
||
if (!empty($this->getQuestionAttribute('time_limit', 'value'))) { | ||
$answer .= $this->getTimeSettingRender(); | ||
} | ||
|
||
$answer .= Yii::app()->twigRenderer->renderQuestion($this->getMainView(), array( | ||
'ia'=>$this->aFieldArray, | ||
'name'=>$this->sSGQA, | ||
'basename'=>$this->sSGQA, | ||
'content' => $this->oQuestion, | ||
'coreClass'=> 'ls-answers '.$sCoreClasses, | ||
), true); | ||
|
||
$inputnames[] = []; | ||
return array($answer, $inputnames); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
application/core/QuestionTypes/ArrayMultiFlexText/DataSetArrayMultiFlexText.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
|
||
|
||
class DataSetArrayMultiFlexText extends QuestionBaseDataSet {} |
Oops, something went wrong.