Overview

Namespaces

  • ModHelper
    • Exceptions

Classes

  • ModHelper\A
  • ModHelper\BitwiseFlag
  • ModHelper\Collection
  • ModHelper\Database
  • ModHelper\Editor
  • ModHelper\Hooks
  • ModHelper\Linktree
  • ModHelper\Menu
  • ModHelper\Nonce
  • ModHelper\Psr4AutoloaderClass
  • ModHelper\Verify

Traits

  • ModHelper\SingletonTrait

Exceptions

  • ModHelper\Exceptions\BadCombinationException
  • ModHelper\Exceptions\MissingDataException
  • ModHelper\Exceptions\ValidationException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace ModHelper;
 4: 
 5: /**
 6:  * This file deals with the verification widget, abstracting it away to keep the logic simple to follow.
 7:  *
 8:  * @package ModHelper
 9:  * @since 1.0
10:  */
11: class Verify
12: {
13:     private $id;
14: 
15:     public function __construct($id)
16:     {
17:         $this->id = $id;
18:     }
19: 
20:     private function initialize($do_test)
21:     {
22:         global $sourcedir;
23:         require_once($sourcedir . '/Subs-Editor.php');
24:         $options = array(
25:             'id' => $this->id,
26:         );
27: 
28:         return create_control_verification($options, $do_test);
29:     }
30: 
31:     public function output()
32:     {
33:         global $txt;
34:         echo '
35:                 <strong>', $txt['verification'], ':</strong>', template_control_verification($this->id, 'quick_reply'), '<br />';
36:     }
37: }
38: 
39: ?>
API documentation generated by ApiGen