extranet/library/WorldCheck/SessionWorldcheck.php
Michael RICOIS 56040500cb Merge
2013-10-16 07:54:35 +00:00

64 lines
1.2 KiB
PHP

<?php
class SessionWorldcheck
{
protected $index = 'wcheck';
public function getName()
{
return $this->get('name');
}
public function getFName()
{
return $this->get('fName');
}
public function getSiren()
{
return $this->get('siren');
}
public function getNameIdentifier()
{
return $this->get('nameIdentifier');
}
public function getMatchCount()
{
return $this->get('matchCount');
}
public function getNameType()
{
return $this->get('nameType');
}
public function getIdClient()
{
return $this->get('idClient');
}
public function getLogin()
{
return $this->get('login');
}
public function setSession($param)
{
$session = new Zend_Session_Namespace($this->index);
$session->name = $param->dirNom;
$session->fName = $param->dirPrenom;
$session->siren = $param->Siren;
$session->nameIdentifier = $param->nameIdentifier;
$session->matchCount = $param->matchCount;
$session->nameType = $param->dirType;
$session->idClient = $param->idClient;
$session->login = $param->login;
}
protected function get($key)
{
$session = new Zend_Session_Namespace($this->index);
return $session->$key;
}
}