|
1
|
|
|
<?php declare(strict_types=1); |
|
2
|
|
|
/* |
|
3
|
|
|
You may not change or alter any portion of this comment or credits |
|
4
|
|
|
of supporting developers from this source code or any supporting source code |
|
5
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
|
6
|
|
|
|
|
7
|
|
|
This program is distributed in the hope that it will be useful, |
|
8
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
9
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* XOOPS tag management module |
|
14
|
|
|
* |
|
15
|
|
|
* @copyright {@link https://sourceforge.net/projects/xoops/ The XOOPS Project} |
|
16
|
|
|
* @license {@link https://www.fsf.org/copyleft/gpl.html GNU public license} |
|
17
|
|
|
* @author XOOPS Module Development Team {@link https://xoops.org} |
|
18
|
|
|
* @since 1.00 |
|
19
|
|
|
*/ |
|
20
|
|
|
|
|
21
|
|
|
use XoopsModules\Tag; |
|
22
|
|
|
|
|
23
|
|
|
//xoops_load('formtag', 'tag'); |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* Class XoopsFormTag |
|
27
|
|
|
*/ |
|
28
|
|
|
class XoopsFormTag extends Tag\FormTag |
|
29
|
|
|
{ |
|
30
|
|
|
/** |
|
31
|
|
|
* Constructor |
|
32
|
|
|
* |
|
33
|
|
|
* @param string $name "name" attribute |
|
34
|
|
|
* @param int $size size of input box |
|
35
|
|
|
* @param int $maxlength Maximum length of text |
|
36
|
|
|
* @param string|int $value Initial text or itemid |
|
37
|
|
|
* @param int $catid category id (applicable if $value is itemid) |
|
38
|
|
|
*/ |
|
39
|
|
|
public function __construct($name, $size, $maxlength, $value = null, $catid = 0) |
|
40
|
|
|
{ |
|
41
|
|
|
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
|
42
|
|
|
trigger_error(__FUNCTION__ . " is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}"); |
|
43
|
|
|
$GLOBALS['xoopsLogger']->addDeprecated( |
|
44
|
|
|
'Tag Module: ' . __CLASS__ . " class is deprecated since Tag 2.3.4, please use 'Tag\FormTag' class instead." . " Called from {$trace[0]['file']}line {$trace[0]['line']}" |
|
45
|
|
|
); |
|
46
|
|
|
parent::__construct($name, $size, $maxlength, $value, $catid); |
|
47
|
|
|
} |
|
48
|
|
|
} |
|
49
|
|
|
|