# e2pdf/1.03.07/classes/helper/e2pdf-post.php

E2Pdf – Export Pdf Tool for WordPress, version 1.03.07. 53 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/1.03.07/code/classes/helper/e2pdf-post.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.03.07/raw/classes/helper/e2pdf-post.php
- Modified: 2018-12-25T15:41:54+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.03.07/code/classes/helper/e2pdf-post.php#L10-L20`.

```php
<?php

/**
 * E2pdf Post Helper
 * 
 * @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 Helper_E2pdf_Post {

    private $post = array();

    /**
     * On init
     * Assign $_POST params to $post
     */
    public function __construct() {
        $this->post = $_POST;
    }

    /**
     * Get value from $_POST
     * 
     * @param string $key - Key of $_POST
     * 
     * @return mixed
     */
    public function get($key = false) {
        if (!$key) {
            if (!empty($this->post)) {
                return $this->post;
            } else {
                return array();
            }
        } else {

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

}

```
