original_string: public function getDernieresActualites($params = array())
  	{
  		$sqlLimit = "";
  		if (isset($params['sqlLimit']) && $params['sqlLimit']!='') {
  			$sqlLimit = $params['sqlLimit'];
  
  		}
  
  		$sqlFields = "idActualite,  titre,  date,  ".
  				"photoIllustration,  texte,  urlFichier";
  		if (isset($params['sqlFields']) && $params['sqlFields']!='') {
  			$sqlFields = $params['sqlFields'];
  		}
  
  		$sqlWhere = "";
  		if (isset($params['sqlWhere']) && $params['sqlWhere']!='') {
  			$sqlWhere = $params['sqlWhere'];
  		}
  
  		$req = "SELECT $sqlFields FROM actualites ".
  				"WHERE 1=1 $sqlWhere ORDER BY date DESC $sqlLimit";
  		$res = $this->connexionBdd->requete($req);
  
  		$i=0;
  		if (!isset($params['returnAsMysqlRes'])
  		|| $params['returnAsMysqlRes']!=true
  		) {
  			$retour = array();
  			while ($fetch = mysql_fetch_assoc($res)) {
  				$retour[$i] = $fetch;
  				$i++;
  			}
  		} else {
  			$retour = $res;
  		}
  
  		return $retour;
  	}
code: public function getDernieresActualites($params = array())
  	{
  		$sqlLimit = "";
  		if (isset($params['sqlLimit']) && $params['sqlLimit']!='') {
  			$sqlLimit = $params['sqlLimit'];
  
  		}
  
  		$sqlFields = "idActualite,  titre,  date,  ".
  				"photoIllustration,  texte,  urlFichier";
  		if (isset($params['sqlFields']) && $params['sqlFields']!='') {
  			$sqlFields = $params['sqlFields'];
  		}
  
  		$sqlWhere = "";
  		if (isset($params['sqlWhere']) && $params['sqlWhere']!='') {
  			$sqlWhere = $params['sqlWhere'];
  		}
  
  		$req = "SELECT $sqlFields FROM actualites ".
  				"WHERE 1=1 $sqlWhere ORDER BY date DESC $sqlLimit";
  		$res = $this->connexionBdd->requete($req);
  
  		$i=0;
  		if (!isset($params['returnAsMysqlRes'])
  		|| $params['returnAsMysqlRes']!=true
  		) {
  			$retour = array();
  			while ($fetch = mysql_fetch_assoc($res)) {
  				$retour[$i] = $fetch;
  				$i++;
  			}
  		} else {
  			$retour = $res;
  		}
  
  		return $retour;
  	}
code_tokens: public function getDernieresActualites ( $ params = array ( ) ) { $ sqlLimit = "" ; if ( isset ( $ params [ 'sqlLimit' ] ) && $ params [ 'sqlLimit' ] != '' ) { $ sqlLimit = $ params [ 'sqlLimit' ] ; } $ sqlFields = "idActualite,  titre,  date,  " . "photoIllustration,  texte,  urlFichier" ; if ( isset ( $ params [ 'sqlFields' ] ) && $ params [ 'sqlFields' ] != '' ) { $ sqlFields = $ params [ 'sqlFields' ] ; } $ sqlWhere = "" ; if ( isset ( $ params [ 'sqlWhere' ] ) && $ params [ 'sqlWhere' ] != '' ) { $ sqlWhere = $ params [ 'sqlWhere' ] ; } $ req = "SELECT $sqlFields FROM actualites " . "WHERE 1=1 $sqlWhere ORDER BY date DESC $sqlLimit" ; $ res = $ this -> connexionBdd -> requete ( $ req ) ; $ i = 0 ; if ( ! isset ( $ params [ 'returnAsMysqlRes' ] ) || $ params [ 'returnAsMysqlRes' ] != true ) { $ retour = array ( ) ; while ( $ fetch = mysql_fetch_assoc ( $ res ) ) { $ retour [ $ i ] = $ fetch ; $ i ++ ; } } else { $ retour = $ res ; } return $ retour ; }
docstring: Renvoi les dernieres actualites pour la page d'accueil
  sous forme de resultat mysql ou de tableau
  
  @param array $params Paramètres
  
  @return Resource
docstring_tokens: Renvoi les dernieres actualites pour la page d accueil sous forme de resultat mysql ou de tableau