Issue #0001634: getScoreCutoff()

This commit is contained in:
Aram HARUTYUNYAN 2013-06-03 13:16:08 +00:00
parent fcfbc3e1f8
commit cb9d084aec

View File

@ -272,7 +272,7 @@ class WsScores
}
/**
* Score Cut Off
* Set Score Cut Off
* @param string $siren
* @param int $encours
* @param int $scoreSolv
@ -302,6 +302,25 @@ class WsScores
return $fault->faultstring;
}
}
/**
* Get Score Cut Off
* @param string $siren
* @return Cutoff values or False
*/
public function getScoreCutoff($siren)
{
$params = new stdClass();
$params->siren = $siren;
$client = $this->loadClient('saisie');
try {
$reponse = $client->getScoreCutoff($params);
return $reponse->getScoreCutoffResult;
} catch (SoapFault $fault) {
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
return $fault->faultstring;
}
}
public function searchLogin($idClient, $query)
{