# e2pdf/1.32.34/classes/helper/e2pdf-get.php

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

- Page: https://pluginprobe.com/plugins/e2pdf/1.32.34/code/classes/helper/e2pdf-get.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.32.34/raw/classes/helper/e2pdf-get.php
- Modified: 2026-07-01T08:33:34+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.32.34/code/classes/helper/e2pdf-get.php#L10-L20`.

```php
<?php

/**
 * File: /helper/e2pdf-get.php
 *
 * @package  E2Pdf
 * @license  GPLv3
 * @link     https://e2pdf.com
 */
if (!defined('ABSPATH')) {
    die('Access denied.');
}

class Helper_E2pdf_Get {

    private $get = [];
    private $page;

    // construct
    public function __construct($url) {
        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
        $args = array_merge(wp_parse_args($url), $_GET);
        if (isset($args['page'])) {
            $this->page = $args['page'];
            unset($args['page']);
        }
        $this->get = $args;
    }

    // get
    public function get($key = false) {
        if (!$key) {
            return !empty($this->get) ? $this->get : [];
        } else {
            return isset($this->get[$key]) ? $this->get[$key] : null;
        }
    }

    // get page
    public function get_page() {
        return $this->page;
    }
}

```
