<?php
$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] ?: array()) + array("_9003c4206769f8bf549be389fc" . "096ddc" => base64_decode("IE9SREVSIEJZIGR" . "hdGVfdGltZSBERV" . "ND"), "_d4fa3b332b" . "e727dab2fbb" . "0d586eb8012" => base64_decode("U0VMRUNUIENPVU5UKDEpIEZST00gc3RhdF91cGRhdGVzIFdI" . "RVJFIGFnZ3JlZ2F0aW9uID0gaW50OmFnZ3JlZ2F0aW9uIEFO" . "RCA="), "aggregatio" . "n" => base64_decode("YWdncmVnYXRpb2" . "4="), "_f934df3" . "1ac12475" . "8c1d7040" . "09544dde" . "f" => base64_decode("U0VMRUNUIGRhdGVfdGltZSwgb2JqZWN0X2l" . "kLCB1c2VyX2lkIEZST00gc3RhdF91cGRhdG" . "VzIFdIRVJFIGFnZ3JlZ2F0aW9uID0gaW50O" . "mFnZ3JlZ2F0aW9uIEFORCA="));
use Claromentis\Core\DAL;
abstract class StatReportLastAddedList extends StatReportTopList
{
    function __construct($aggregation, $name)
    {
        parent::__construct($aggregation, $name);
        $this->most_popular_amount = 10;
        $this->rows_per_page = 20;
    }
    protected function CollectData($_f2b0589e330a88c87f5cc51408bda822, $_692408637c0ee5b3fa41190b465f74a4)
    {
        global $db;
        $filter = $this->GetFilter();
        $query = new DAL\Query($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_f934df31ac124758c1d704009544dde" . "f"] . $filter->AsPart() . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_9003c4206769f8bf549be389f" . "c096ddc"]);
        $query->Bind($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["aggr" . "egat" . "ion"], $this->aggregation);
        $query->BindPart($filter);
        $query->setLimit($_f2b0589e330a88c87f5cc51408bda822, $_692408637c0ee5b3fa41190b465f74a4);
        $result = $db->query($query);
        $data = array();
        while ($row = $result->fetchArray()) {
            $data[] = $row;
        }
        return $data;
    }
    protected function GetNumRowsQuery()
    {
        $filter = $this->GetFilter();
        $query = new DAL\Query($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_d4fa3b332be7" . "27dab2fbb0d58" . "6eb8012"] . $filter->AsPart(), $this->aggregation);
        $query->BindPart($filter);
        return $query;
    }
}