Index: kernel/classes/ezviewcounter.php
===================================================================
--- kernel/classes/ezviewcounter.php	(révision 23586)
+++ kernel/classes/ezviewcounter.php	(copie de travail)
@@ -128,8 +128,16 @@
         $queryPart = "";
         if ( $classID != false )
         {
-            $classID = (int)$classID;
-            $queryPart .= "ezcontentobject.contentclass_id=$classID AND ";
+            if ( is_array( $classID ) )
+            {
+                $ids = implode( ', ', $classID );
+                $queryPart .= "ezcontentobject.contentclass_id IN ( $ids ) AND ";
+            }
+            else
+            {
+                $classID = (int)$classID;
+                $queryPart .= "ezcontentobject.contentclass_id=$classID AND ";
+            }
         }
 
         if ( $sectionID != false )
Index: kernel/content/ezcontentfunctioncollection.php
===================================================================
--- kernel/content/ezcontentfunctioncollection.php	(révision 23586)
+++ kernel/content/ezcontentfunctioncollection.php	(copie de travail)
@@ -706,7 +706,32 @@
 
     static public function fetchMostViewedTopList( $classID, $sectionID, $offset, $limit )
     {
-        $topList = eZViewCounter::fetchTopList( $classID, $sectionID, $offset, $limit );
+        if ( is_array( $classID ) )
+        {
+            $classIDParam = array();
+            foreach( $classID as $id )
+            {
+                if ( !is_numeric( $id ) )
+                {
+                    $class = eZContentClass::fetchByIdentifier( $id );
+                    $classIDParam[] = $class->attribute( 'id' );
+                }
+                else
+                {
+                    $classIDParam[] = $id;
+                }
+            }
+        }
+        else if ( !is_numeric( $classID ) )
+        {
+            $class = eZContentClass::fetchByIdentifier( $classID );
+            $classIDParam = $class->attribute( 'id' );
+        }
+        else
+        {
+            $classIDParam = $classID;
+        }
+        $topList = eZViewCounter::fetchTopList( $classIDParam, $sectionID, $offset, $limit );
         $contentNodeList = array();
         foreach ( array_keys ( $topList ) as $key )
         {
Index: kernel/content/function_definition.php
===================================================================
--- kernel/content/function_definition.php	(révision 23586)
+++ kernel/content/function_definition.php	(copie de travail)
@@ -789,7 +789,7 @@
                                                                 'method' => 'fetchMostViewedTopList' ),
                                         'parameter_type' => 'standard',
                                         'parameters' => array( array( 'name' => 'class_id',
-                                                                      'type' => 'integer',
+                                                                      'type' => 'mixed',
                                                                       'required' => false,
                                                                       'default' => false ),
                                                                array( 'name' => 'section_id',
