# better-payment/trunk/includes/Models/AnalyticsModel.php

Better Payment – Instant Payments, Donations, Fundraising with Subscriptions &amp; More, version trunk. 35 lines.

- Page: https://pluginprobe.com/plugins/better-payment/trunk/code/includes/Models/AnalyticsModel.php
- Raw: https://pluginprobe.com/plugins/better-payment/trunk/raw/includes/Models/AnalyticsModel.php
- Modified: 2024-01-09T05:12:38+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/better-payment/trunk/code/includes/Models/AnalyticsModel.php#L10-L20`.

```php
<?php

namespace Better_Payment\Lite\Models;

use Better_Payment\Lite\Admin\DB;
use Better_Payment\Lite\Model;

/**
 * The Analytics handler database class
 * 
 * @since 0.0.1
 */
class AnalyticsModel extends Model {

    /**
     * Initialize the class
     * 
     * @since 0.0.1
     */
    public function __construct( ) {
        parent::__construct();
    }

    /**
     * Allowed transaction statuses
     * 
     * @since 0.0.1
     */
    public function allowed_statuses($type = 'all', $version = 'v2' ){
        $better_payment_db_obj = new DB();
        $statuses = $better_payment_db_obj->allowed_statuses($type, $version);
        return $statuses;
    }
    
} 
```
