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);
    }
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);
    }
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 ) ; }
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.
Returns the server time and idsite of rows in a log table that reference at least one action in a set .