Création de la fonction de recupération des enrichissement / Comptage
This commit is contained in:
parent
4686cbc8d5
commit
875025e507
@ -42,7 +42,28 @@ Class Object_Dashboard
|
||||
}
|
||||
return ($results);
|
||||
}
|
||||
|
||||
|
||||
public function enrichissement($idComptage)
|
||||
{
|
||||
$enrichissements = new Table_EnrichissementIdentifiants();
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
$sql = $enrichissements->select()
|
||||
->setIntegrityCheck(false)
|
||||
->from(
|
||||
array('i' => 'enrichissement_identifiants'),
|
||||
array('id', 'reference', 'fichier', 'nbLigneTotales', 'nbLigneTraites', 'error', 'dateAdded', 'dateStart', 'dateStop')
|
||||
)
|
||||
->join(
|
||||
array('criteres' => 'criteres'), 'i.idCriteres = criteres.id',
|
||||
array('')
|
||||
)
|
||||
->where('criteres.idClient = ?', $user->idClient)
|
||||
->where('criteres.login = ?', $user->username)
|
||||
->where('i.idComptage = ?', $idComptage);
|
||||
return ($enrichissements->fetchAll($sql));
|
||||
}
|
||||
|
||||
public function enrichissements()
|
||||
{
|
||||
$enrichissementsM = new Table_EnrichissementIdentifiants();
|
||||
|
Loading…
Reference in New Issue
Block a user