|
@@ 56-64 (lines=9) @@
|
| 53 |
|
* @param string $regCode |
| 54 |
|
* @return RegistrationObj |
| 55 |
|
*/ |
| 56 |
|
public function getRegistrationByEventCodeAnRegCode($eventCode,$regCode) |
| 57 |
|
{ |
| 58 |
|
$request= $this->get($eventCode.'/'.$regCode); |
| 59 |
|
if($request->isSuccessFul()){ |
| 60 |
|
$registrationCertainResult= $request->getResults(); |
| 61 |
|
return $registrationCertainResult; |
| 62 |
|
} |
| 63 |
|
return null; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
/** |
| 67 |
|
* Update with the result from certain. |
|
@@ 72-80 (lines=9) @@
|
| 69 |
|
* @param string $regCode |
| 70 |
|
* @return RegistrationObj |
| 71 |
|
*/ |
| 72 |
|
public function updateRegistrationByEventCodeAnRegCode($eventCode,$regCode,$data=[]) |
| 73 |
|
{ |
| 74 |
|
$request= $this->post($data,[],$eventCode.'/'.$regCode); |
| 75 |
|
if($request->isSuccessFul()){ |
| 76 |
|
$registrationCertainResult= $request->getResults(); |
| 77 |
|
return $registrationCertainResult; |
| 78 |
|
} |
| 79 |
|
return null; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
// public function substituateRegistration($eventCode,$regCode,$profilePin){ |
| 83 |
|
// return $this->updateRegistrationByEventCodeAnRegCode($eventCode, $regCode, [ |