1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| class Client
{
private $civilite,$nom,$prenom;
public function __construct($dbRow)
{
$this->civilite = $dbRow['civilite'];
$this->nom = $dbRow['nom'];
$this->prenom = $dbRow['prenom'];
}
public function getClientNom()
{
return $this->nom;
}
public function getClientPrenom()
{
return $this->prenom;
}
public function getClientCivilite()
{
return $this->civilite;
}
private function getRandomId(){
return str_replace('.', '', microtime(true).rand());
}
public function Registerppi(){
$wallet = self::getRandomId();
$nom->getClientNom();
$res = Kit::Registerppi(array('ppi' => $ppi,
'clientMail' => 'mail@mail.fr',
'clientTitle' => 'civilite',
'clientFirstName' => 'prenom',
'clientLastName' => '$nom'));
if (isset($res->lwError))
print 'Error, code '.$res->lwError->CODE.' : '.$res->lwError->MSG;
else
print '<br/>Wallet created : ' . $res->wallet->ID;
}
} |
Partager