# firebox/1.0.6/Inc/Core/Admin/Analytics/DB.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version 1.0.6. 64 lines.

- Page: https://pluginprobe.com/plugins/firebox/1.0.6/code/Inc/Core/Admin/Analytics/DB.php
- Raw: https://pluginprobe.com/plugins/firebox/1.0.6/raw/Inc/Core/Admin/Analytics/DB.php
- Modified: 2021-10-22T10:30:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/1.0.6/code/Inc/Core/Admin/Analytics/DB.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         1.0.6 Free
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2021 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

namespace FireBox\Core\Admin\Analytics;

if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly.
}

class DB
{
    /**
     * Returns box results from the database given a payload
     * 
     * @param   array  $payload
     * 
     * @return  array
     */
    public function getBoxResults($payload)
    {
        if (!$payload)
        {
            return [];
        }

        if (!isset($payload['select']))
        {
            return [];
        }
        
        return firebox()->tables->box->getResults($payload);
    }

    /**
     * Returns results from the database given a payload
     * 
     * @param   array  $payload
     * 
     * @return  array
     */
    public function getResults($payload)
    {
        if (!$payload)
        {
            return [];
        }

        if (!isset($payload['select']))
        {
            return [];
        }
        
        return firebox()->tables->boxlog->getResults($payload);
    }
}
```
