Liste de tous les tokens * */ public static function getAll(){ /* [1] On prepare et execute la requete =========================================================*/ $request = Database::getPDO()->query("SELECT id_token as id, name, token, creation, expires FROM api_token WHERE CURDATE() BETWEEN creation AND expires ORDER BY creation ASC"); /* [2] On recupere et retourne les donnees =========================================================*/ return Database::delNumeric( $request->fetchAll() ); } } ?>