issue #0000930 : Liste des logs

This commit is contained in:
Michael RICOIS 2012-10-09 07:33:43 +00:00
parent a1fbf91740
commit e9365a0d09
4 changed files with 28 additions and 3 deletions

View File

@ -9,6 +9,7 @@ Type[] = "Client"
Type[] = "ListeDroitsReturn" Type[] = "ListeDroitsReturn"
Type[] = "ListCategoryReturn" Type[] = "ListCategoryReturn"
Type[] = "ListePrefsReturn" Type[] = "ListePrefsReturn"
Type[] = "ListeLogsReturn"
Type[] = "ListeUtilisateursReturn" Type[] = "ListeUtilisateursReturn"
Type[] = "Utilisateur" Type[] = "Utilisateur"
Type[] = "LogsClientsReturn" Type[] = "LogsClientsReturn"

View File

@ -600,6 +600,22 @@ class Gestion extends WsScore
} }
return $tabRet; return $tabRet;
} }
/**
* Retourne la liste des logs
* @return ListeLogsReturn[]
*/
protected function getLogs()
{
$tabRet = array();
foreach($this->logs as $code => $desc){
$log = new ListeLogsReturn();
$log->code = $code;
$log->desc = $desc;
$tabRet[] = $log;
}
return $tabRet;
}
/** /**
* Récupère les informations du profil connecté * Récupère les informations du profil connecté

View File

@ -270,6 +270,14 @@ class ListePrefsReturn
public $desc; public $desc;
} }
class ListeLogsReturn
{
/** @var string */
public $code;
/** @var string */
public $desc;
}
class ListeUtilisateursReturn class ListeUtilisateursReturn
{ {
/** @var ErrorType */ /** @var ErrorType */

View File

@ -224,13 +224,13 @@ class WsScore
'label' => "Ratios", 'label' => "Ratios",
), ),
'rapport1' => array( 'rapport1' => array(
'label' => "", 'label' => "Rapport complet 1",
), ),
'rapport2' => array( 'rapport2' => array(
'label' => "", 'label' => "Rapport complet 2",
), ),
'rapport3' => array( 'rapport3' => array(
'label' => "", 'label' => "Rapport complet 3",
), ),
'banque' => array( 'banque' => array(
'label' => "Relations banquaires", 'label' => "Relations banquaires",