Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 31 |
SupplementaryTabulationRegisterGenerator | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
90.00 | |
0.00% |
0 / 31 |
__construct | |
0.00% |
0 / 1 |
72.00 | |
0.00% |
0 / 29 |
|||
getSupplementaryTabulationRegisterResultData | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 2 |
<?php | |
namespace com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\StudentMarkListService; | |
use com\linways\base\util\MakeSingletonTrait; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template1SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template2SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template6SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template14SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template13SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template9SupplementaryTabulationRegisterGenerator; | |
use com\linways\ec\core\service\SupplementaryTabulationRegisterGenerator\Template15SupplementaryTabulationRegisterGenerator; | |
class SupplementaryTabulationRegisterGenerator{ | |
use MakeSingletonTrait; | |
private $SupplementaryTabulationRegisterGenerator; | |
public function __construct(){ | |
$examType = 'EC_SUPPLEMENTARY_TR'; | |
$markListTemplate = StudentMarkListService::getInstance()->getUniversityMarkListTemplate($examType); | |
switch ($markListTemplate) { | |
case 'Template_1': | |
// MES VIMALA STJOSEPH Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template1SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_2': | |
// MES CHRIST Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template2SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_6': | |
// SCEK Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template6SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_9': | |
// SJC Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template9SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_14': | |
// IAGI Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template14SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_13': | |
// SCEK Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template13SupplementaryTabulationRegisterGenerator(); | |
break; | |
case 'Template_15': | |
// CCM Colleges | |
$this->SupplementaryTabulationRegisterGenerator = new Template15SupplementaryTabulationRegisterGenerator(); | |
break; | |
default: | |
$this->SupplementaryTabulationRegisterGenerator = new Template2SupplementaryTabulationRegisterGenerator(); | |
break; | |
} | |
} | |
public function getSupplementaryTabulationRegisterResultData($request){ | |
return $this->SupplementaryTabulationRegisterGenerator->getSupplementaryTabulationRegisterResultData($request); | |
} | |
} | |