include/formtag.php
<?php declare(strict_types=1);
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* XOOPS tag management module
*
* @copyright {@link https://sourceforge.net/projects/xoops/ The XOOPS Project}
* @license {@link https://www.fsf.org/copyleft/gpl.html GNU public license}
* @author XOOPS Module Development Team {@link https://xoops.org}
* @since 1.00
*/
use XoopsModules\Tag;
//xoops_load('formtag', 'tag');
/**
* Class XoopsFormTag
*/
class XoopsFormTag extends Tag\FormTag
{
/**
* Constructor
*
* @param string $name "name" attribute
* @param int $size size of input box
* @param int $maxlength Maximum length of text
* @param string|int $value Initial text or itemid
* @param int $catid category id (applicable if $value is itemid)
*/
public function __construct($name, $size, $maxlength, $value = null, $catid = 0)
{
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
trigger_error(__FUNCTION__ . " is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
$GLOBALS['xoopsLogger']->addDeprecated(
'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']}"
);
parent::__construct($name, $size, $maxlength, $value, $catid);
}
}