<?php
$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] ?: array()) + array("_9003c42067" . "69f8bf549be" . "389fc096ddc" => base64_decode("IE9SREVSIEJZIGRhdGVfdGltZSBERV" . "ND"), "_f934df31ac124758" . "c1d704009544ddef" => base64_decode("U0VMRUNUIGRhdGVfdGltZSwgb2JqZWN0X2lkLCB1c2VyX2lkI" . "EZST00gc3RhdF91cGRhdGVzIFdIRVJFIGFnZ3JlZ2F0aW9uID" . "0gaW50OmFnZ3JlZ2F0aW9uIEFORCA="), "_d4fa3b332be727dab2fbb0d586" . "eb8012" => base64_decode("U0VMRUNUIENPVU5UKDEpIEZST00gc3RhdF91cGRhdGVzIFdIRVJFIGFnZ3JlZ2F0aW9uID0gaW50O" . "mFnZ3JlZ2F0aW9uIEFORCA="), "aggregat" . "ion" => base64_decode("YWdncmVn" . "YXRpb24="));
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["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_f934df31ac124758c1d70400" . "9544ddef"] . $filter->AsPart() . $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_9003c4206769f8bf549be3" . "89fc096ddc"]);
        $query->Bind($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["aggregati" . "on"], $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["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_d4fa3b332be727dab" . "2fbb0d586eb8012"] . $filter->AsPart(), $this->aggregation);
        $query->BindPart($filter);
        return $query;
    }
}