original_string: public function getSitesAndDatesOfRowsUsingDuplicates($table, $duplicateIdActions)
      {
          $idactionColumns = $this->getIdActionTableColumnsFromMetadata();
          $idactionColumns = array_values($idactionColumns[$table]);
          $table = Common::prefixTable($table);
  
          $sql = "SELECT idsite, DATE(server_time) as server_time FROM $table ";
          $sql .= $this->getWhereToGetRowsUsingDuplicateActions($idactionColumns, $duplicateIdActions);
          return Db::fetchAll($sql);
      }
code: public function getSitesAndDatesOfRowsUsingDuplicates($table, $duplicateIdActions)
      {
          $idactionColumns = $this->getIdActionTableColumnsFromMetadata();
          $idactionColumns = array_values($idactionColumns[$table]);
          $table = Common::prefixTable($table);
  
          $sql = "SELECT idsite, DATE(server_time) as server_time FROM $table ";
          $sql .= $this->getWhereToGetRowsUsingDuplicateActions($idactionColumns, $duplicateIdActions);
          return Db::fetchAll($sql);
      }
code_tokens: public function getSitesAndDatesOfRowsUsingDuplicates ( $ table , $ duplicateIdActions ) { $ idactionColumns = $ this -> getIdActionTableColumnsFromMetadata ( ) ; $ idactionColumns = array_values ( $ idactionColumns [ $ table ] ) ; $ table = Common :: prefixTable ( $ table ) ; $ sql = "SELECT idsite, DATE(server_time) as server_time FROM $table " ; $ sql .= $ this -> getWhereToGetRowsUsingDuplicateActions ( $ idactionColumns , $ duplicateIdActions ) ; return Db :: fetchAll ( $ sql ) ; }
docstring: Returns the server time and idsite of rows in a log table that reference at least one action
  in a set.
  
  @param string $table
  @param int[] $duplicateIdActions
  @return array with two elements **idsite** and **server_time**. idsite is the site ID and server_time
  is the date of the log.
docstring_tokens: Returns the server time and idsite of rows in a log table that reference at least one action in a set .