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