Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 21 |
CostomFeildMasterService | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 21 |
getAllCoustomFeilds | |
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 21 |
<?php | |
namespace com\linways\ec\core\service; | |
use com\linways\base\util\MakeSingletonTrait; | |
use com\linways\base\util\SecurityUtils; | |
use com\linways\ec\core\constant\StatusConstants; | |
use com\linways\ec\core\exception\ExamControllerException; | |
class CostomFeildMasterService extends BaseService{ | |
use MakeSingletonTrait; | |
/** | |
* get All Custom Feilds | |
* @param $searchRequest | |
* @return $customFeilds | |
* @author Krishnajith | |
*/ | |
public function getAllCoustomFeilds($searchRequest) { | |
$customFeilds = []; | |
$searchRequest = $this->realEscapeObject($searchRequest); | |
try{ | |
$orderBy = " ORDER BY ecfm.created_date DESC"; | |
$whereQuery = ""; | |
$query = "SELECT DISTINCT | |
ecfm.id AS id, | |
ecfm.name AS name, | |
ecfm.code AS code, | |
ecfm.type AS type, | |
ecfm.properties AS properties | |
FROM | |
`ec_custom_feild_master` ecfm | |
WHERE 1=1 "; | |
$customFeilds = $this->executeQueryForList($query.$whereQuery.$orderBy); | |
} | |
catch (\Exception $e){ | |
throw new ExamControllerException($e->getCode(),$e->getMessage()); | |
} | |
return $customFeilds; | |
} | |
} |