mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-22 07:56:09 +01:00
[TASK] Introduce SkillSet Verification
This commit is contained in:
parent
1ad35bd909
commit
14eef81363
1 changed files with 9 additions and 2 deletions
|
@ -16,9 +16,16 @@ class Issuer {
|
|||
* @param string $vtype one of VERIFICATION_SELF, VERIFICATION_EDUCATIONAL, VERIFICATION_BUSINESS, VERIFICATION_CERTIFICATION
|
||||
* @return array
|
||||
*/
|
||||
private function generateSignedRequestData(int $skillID, string $useremail, string $vtype) : array {
|
||||
private function generateSignedRequestData(int $ID, string $useremail, string $vtype, bool $isSkillSet = false) : array {
|
||||
|
||||
if($isSkillSet){
|
||||
$requestData['SkillSetId'] = $ID;
|
||||
}
|
||||
else{
|
||||
$requestData['SkillId'] = $ID;
|
||||
}
|
||||
|
||||
$requestData = [
|
||||
"SkillId" => $skillID,
|
||||
"Level" => $vtype,
|
||||
"VerifierId" => $this->settings->getVerifierID(),
|
||||
"Username" => $useremail,
|
||||
|
|
Loading…
Reference in a new issue