# e2pdf/1.01.01/classes/model/e2pdf-license.php

E2Pdf – Export Pdf Tool for WordPress, version 1.01.01. 44 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/1.01.01/code/classes/model/e2pdf-license.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.01.01/raw/classes/model/e2pdf-license.php
- Modified: 2018-11-07T14:59:18+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/e2pdf/1.01.01/code/classes/model/e2pdf-license.php#L10-L20`.

```php
<?php

/**
 * E2pdf License Model
 * 
 * @copyright  Copyright 2017 https://e2pdf.com
 * @license    GPL v2
 * @version    1
 * @link       https://e2pdf.com
 * @since      0.00.01
 */
if (!defined('ABSPATH')) {
    die('Access denied.');
}

class Model_E2pdf_License extends Model_E2pdf_Model {

    private $license;

    function __construct() {
        parent::__construct();
        $this->load_license();
    }

    public function get($key) {

        if (isset($this->license[$key])) {
            return $this->license[$key];
        } else {
            return false;
        }
    }

    public function load_license() {
        $model_e2pdf_api = new Model_E2pdf_Api;
        $model_e2pdf_api->set(array(
            'action' => 'license/info',
        ));
        $license = $model_e2pdf_api->request();
        $this->license = $license;
    }

}

```
