/** * @name selectByLabel($pLabel) * @param string * @return array(CompteVO) * @desc Récupères toutes les lignes de la table ayant pour Label $pLabel et les renvoie sous forme d'une collection de CompteVO */ public static function selectByLabel($pLabel) { return CompteManager::recherche(array(CompteManager::CHAMP_COMPTE_LABEL), array('='), array($pLabel), array(CompteManager::CHAMP_COMPTE_ID), array('DESC')); }
/** * @name selectByLabel($pLabel) * @param string * @return CompteVO * @desc Retourne un compte */ public function selectByLabel($pLabel) { $lCompte = CompteManager::recherche(array(CompteManager::CHAMP_COMPTE_LABEL), array('='), array($pLabel), array(''), array('')); return $lCompte[0]; }