PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.06.02
E2Pdf – Export Pdf Tool for WordPress v1.06.02
1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 1.06.02 1.07.11 1.08.00 1.08.06 1.08.09 All 71 releases
e2pdf / classes / model / e2pdf-debug.php

e2pdf-debug.php in E2Pdf – Export Pdf Tool for WordPress 1.06.02, at classes/model/e2pdf-debug.php

50 lines 933 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * E2pdf Debug Model
5 *
6 * @copyright Copyright 2017 https://e2pdf.com
7 * @license GPL v2
8 * @version 1
9 * @link https://e2pdf.com
10 * @since 0.00.01
11 */
12 if (!defined('ABSPATH')) {
13 die('Access denied.');
14 }
15
16 class Model_E2pdf_Debug extends Model_E2pdf_Model {
17
18 private $api = null;
19 private $debug = null;
20
21 /**
22 * On init
23 * Set Domain
24 * Set API Key
25 */
26 public function __construct() {
27
28 parent::__construct();
29 $this->api = new Model_E2pdf_Api();
30 $this->debug = new stdClass();
31 $this->debug->domain = $this->api->get_domain();
32 }
33
34 /**
35 * Get Debug Option
36 *
37 * @param string $key - Key
38 *
39 * @return mixed - Option value|false
40 */
41 public function get($key) {
42 if (isset($this->debug->$key)) {
43 return $this->debug->$key;
44 } else {
45 return false;
46 }
47 }
48
49 }
50