<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("aggregatio" . "n" => base64_decode("YWdncmVnYXRpb24" . "="), "_8a2c417" . "9b7145f5" . "7e03893c" . "306413ae" . "2" => base64_decode("U0VMRUNUIG9iamVjdF9pZCwgQ09VTlQodXNlcl9pZCkgdmlld3MsIENPVU5UKERJU1RJTkNUIHVzZXJfaWQpIHVuaXF1ZV92aWV3ZXJzIEZST00gc3RhdF" . "92aWV3cyBXSEVSRSBhZ2dyZWdhdGlvbiA9IGludDphZ2dyZWdhdGlvbiBBTkQg"), "_bfe6642a5b68bf0dfbe0e38d0" . "c9f9bb3" => base64_decode("U0VMRUNUIENPVU5UKDEpIEZST00gKFNFTEVDVCBvYmplY3RfaWQgRlJPTSBzdGF0X3ZpZXdzIFdIRVJFIGFnZ3JlZ2F0aW9uID0gaW50OmFnZ3JlZ2F0aW9uIEF" . "ORCA="), "_31fe0e29fdfc834bf81efd515f83" . "90b2" => base64_decode("IEdST1VQIEJZIG9iamVjdF9pZCBPUkRFUiBCWSB2aWV3cyBERVNDLCB1bmlxdWVfdmlld2VycyBE" . "RVNDLCBvYmplY3RfaWQgQVND"), "_c3632c30d13c0678877605a29c10" . "c428" => base64_decode("IEdST1VQIEJZIG" . "9iamVjdF9pZCkg" . "dA=="));
use Claromentis\Core\DAL;
abstract class StatReportTopViewList 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["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_8a2c417" . "9b7145f5" . "7e03893c" . "306413ae" . "2"] . $filter->AsPart() . $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_31fe0e29f" . "dfc834bf81" . "efd515f839" . "0b2"]);
        $query->Bind($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["aggrega" . "tion"], $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["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_bfe6642a5b6" . "8bf0dfbe0e38" . "d0c9f9bb3"] . $filter->AsPart() . $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_c3632c30" . "d13c06788" . "77605a29c" . "10c428"], $this->aggregation);
        $query->BindPart($filter);
        return $query;
    }
}