PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.03.07
E2Pdf – Export Pdf Tool for WordPress v1.03.07
1.32.49 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 All 72 releases
e2pdf / classes / helper / e2pdf-post.php

e2pdf-post.php in E2Pdf – Export Pdf Tool for WordPress 1.03.07, at classes/helper/e2pdf-post.php

53 lines 952 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * E2pdf Post Helper
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 Helper_E2pdf_Post {
17
18 private $post = array();
19
20 /**
21 * On init
22 * Assign $_POST params to $post
23 */
24 public function __construct() {
25 $this->post = $_POST;
26 }
27
28 /**
29 * Get value from $_POST
30 *
31 * @param string $key - Key of $_POST
32 *
33 * @return mixed
34 */
35 public function get($key = false) {
36 if (!$key) {
37 if (!empty($this->post)) {
38 return $this->post;
39 } else {
40 return array();
41 }
42 } else {
43
44 if (isset($this->post[$key])) {
45 return $this->post[$key];
46 } else {
47 return null;
48 }
49 }
50 }
51
52 }
53