<?php
namespace Claromentis\Stat\Telemetry;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] ?: array()) + array("_4da711d7" . "b00828271" . "817413017" . "b67a84" => base64_decode("c2VsZWN0IGNvd" . "W50KCopIGFzIG" . "NudCBmcm9tIA=" . "="), "_3ce61d3a8a385e00d" . "1583b95ce3eacb0" => base64_decode("Y" . "2" . "5" . "0"));
use Claromentis\Core\DAL\Db;
use Claromentis\Core\DAL\Query;
class ObjectDataCollector extends DataCollectorBase implements DataCollectorInterface
{
    private $table_list = ['users' => 'users', 'documents' => 'ERMS_data', 'news_posts' => 'news', 'blog_posts' => 'blog_post', 'calendar_events' => 'cln_event', 'forum_boards' => 'forum_boards', 'forum_messages' => 'forum_messages', 'user_groups' => 'groups', 'publish_pages' => 'pub_page', 'publish_category' => 'pub_category', 'publish_templates' => 'pub_template', 'room_booking_events' => 'rb_events', 'comments' => 'comments', 'likes' => 'likes'];
    
    
    
    
    
    public function Generate(Db $db)
    {
        foreach ($this->table_list as $key => $_c81a475ecdc9121925813756400e25f9) {
            $query = new Query($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_4da711d7b00828271817413017b67" . "a84"] . $_c81a475ecdc9121925813756400e25f9);
            $result = $db->query($query);
            if ($result) {
                $_189840d11056515e52402d1412a0b6e4 = $result->fetchArray();
                $this->data[$key] = $_189840d11056515e52402d1412a0b6e4[$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_3ce61d3a8a385e00d1583b95" . "ce3eacb0"]];
            }
        }
        return true;
    }
}