PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / trunk
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification vtrunk
5.11.0 5.10.0 5.9.0 5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 All 44 releases
double-opt-in / src / Help / HelpSource.php

HelpSource.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification trunk, at src/Help/HelpSource.php

46 lines 973 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * One place that ships help articles: the core or an addon.
4 *
5 * @package Forge12\DoubleOptIn\Help
6 * @since 5.11.0
7 */
8
9 declare( strict_types=1 );
10
11 namespace Forge12\DoubleOptIn\Help;
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 class HelpSource {
18
19 public const GROUP_CORE = 'core';
20 public const GROUP_MODULE = 'modules';
21 public const GROUP_INTEGRATION = 'integrations';
22
23 /** @var string */
24 public $id;
25
26 /** @var string */
27 public $name;
28
29 /** @var string Absolute path of the `help` directory, no trailing slash. */
30 public $dir;
31
32 /** @var string URL of the `help` directory, with trailing slash. */
33 public $url;
34
35 /** @var string One of the GROUP_* constants. */
36 public $group;
37
38 public function __construct( string $id, string $name, string $dir, string $url, string $group ) {
39 $this->id = $id;
40 $this->name = $name;
41 $this->dir = rtrim( $dir, '/\\' );
42 $this->url = rtrim( $url, '/' ) . '/';
43 $this->group = $group;
44 }
45 }
46