<?php
$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] ?: array()) + array("_d4fa3b33" . "2be727dab" . "2fbb0d586" . "eb8012" => base64_decode("U0VMRUNUIENPVU5UKDEpIEZST" . "00gc3RhdF91cGRhdGVzIFdIRV" . "JFIGFnZ3JlZ2F0aW9uID0gaW5" . "0OmFnZ3JlZ2F0aW9uIEFORCA="), "aggre" . "gatio" . "n" => base64_decode("YWdncmVnYXRpb2" . "4="), "_f934df31ac1247" . "58c1d704009544d" . "def" => base64_decode("U0VMRUNUIGRhdGVfdGltZSwgb2JqZWN0X2lkLCB1c2VyX2lkIE" . "ZST00gc3RhdF91cGRhdGVzIFdIRVJFIGFnZ3JlZ2F0aW9uID0g" . "aW50OmFnZ3JlZ2F0aW9uIEFORCA="), "_9003c4206769" . "f8bf549be389f" . "c096ddc" => base64_decode("IE9SREVSIEJZIGRhdGVfdGl" . "tZSBERVND"));
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["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_f934df31ac124758c1d704009544dde" . "f"] . $filter->AsPart() . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_9003c4206769f8bf549be389fc096dd" . "c"]);
        $query->Bind($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["aggregatio" . "n"], $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"]["_d4fa3b332" . "be727dab2f" . "bb0d586eb8" . "012"] . $filter->AsPart(), $this->aggregation);
        $query->BindPart($filter);
        return $query;
    }
}