| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* File: /model/e2pdf-license.php |
| 5 |
* |
| 6 |
* @package E2Pdf |
| 7 |
* @license GPLv3 |
| 8 |
* @link https://e2pdf.com |
| 9 |
*/ |
| 10 |
if (!defined('ABSPATH')) { |
| 11 |
die('Access denied.'); |
| 12 |
} |
| 13 |
|
| 14 |
class Model_E2pdf_License extends Model_E2pdf_Model { |
| 15 |
|
| 16 |
private $license; |
| 17 |
|
| 18 |
public function __construct($license) { |
| 19 |
parent::__construct(); |
| 20 |
$this->license = $license; |
| 21 |
} |
| 22 |
|
| 23 |
public function get($key) { |
| 24 |
if (isset($this->license[$key])) { |
| 25 |
return $this->license[$key]; |
| 26 |
} else { |
| 27 |
return false; |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
|