1 | <?php |
||
8 | class XoopsCaptchaText |
||
9 | { |
||
10 | public $config = array(); |
||
11 | public $code; |
||
12 | |||
13 | /** |
||
14 | * XoopsCaptchaText constructor. |
||
15 | */ |
||
16 | public function __construct() |
||
17 | { |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @return XoopsCaptchaText |
||
22 | */ |
||
23 | public static function getInstance() |
||
24 | { |
||
25 | static $instance; |
||
26 | if (null === $instance) { |
||
27 | $instance = new static(); |
||
28 | } |
||
29 | |||
30 | return $instance; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Loading configs from CAPTCHA class |
||
35 | * @param array $config |
||
36 | */ |
||
37 | public function loadConfig($config = array()) |
||
42 | |||
43 | public function setCode() |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function render() |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function loadText() |
||
90 | } |
||
91 |