|
@@ 90-98 (lines=9) @@
|
| 87 |
|
* @param string $regCode |
| 88 |
|
* @return RegistrationObj |
| 89 |
|
*/ |
| 90 |
|
public function getRegistrationByEventCodeAnRegCode($eventCode,$regCode) |
| 91 |
|
{ |
| 92 |
|
$request= $this->get($eventCode.'/'.$regCode); |
| 93 |
|
if($request->isSuccessFul()){ |
| 94 |
|
$registrationCertainResult= $request->getResults(); |
| 95 |
|
return $registrationCertainResult; |
| 96 |
|
} |
| 97 |
|
return null; |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
/** |
| 101 |
|
* Update with the result from certain. |
|
@@ 106-114 (lines=9) @@
|
| 103 |
|
* @param string $regCode |
| 104 |
|
* @return RegistrationObj |
| 105 |
|
*/ |
| 106 |
|
public function updateRegistrationByEventCodeAnRegCode($eventCode,$regCode,$data=[]) |
| 107 |
|
{ |
| 108 |
|
$request= $this->post($data,[],$eventCode.'/'.$regCode); |
| 109 |
|
if($request->isSuccessFul()){ |
| 110 |
|
$registrationCertainResult= $request->getResults(); |
| 111 |
|
return $registrationCertainResult; |
| 112 |
|
} |
| 113 |
|
return null; |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
// public function substituateRegistration($eventCode,$regCode,$profilePin){ |
| 117 |
|
// return $this->updateRegistrationByEventCodeAnRegCode($eventCode, $regCode, [ |