1: <?php
2: /**
3: * XOOPS user handler
4: *
5: * You may not change or alter any portion of this comment or credits
6: * of supporting developers from this source code or any supporting source code
7: * which is considered copyrighted (c) material of the original comment or credit authors.
8: * This program is distributed in the hope that it will be useful,
9: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11: *
12: * @copyright XOOPS Project (http://xoops.org)
13: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
14: * @package kernel
15: * @since 2.0.0
16: * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
17: * @version $Id$
18: */
19:
20: namespace Xoops\Core\Kernel\Handlers;
21:
22: use Xoops\Core\Database\Connection;
23: use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
24:
25: /**
26: * XOOPS user handler class.
27: * This class is responsible for providing data access mechanisms to the data source
28: * of XOOPS user class objects.
29: *
30: * @category Xoops\Core\Kernel\Handlers\XoopsUserHandler
31: * @package Xoops\Core\Kernel
32: * @author Kazumi Ono <onokazu@xoops.org>
33: * @author Taiwen Jiang <phppp@users.sourceforge.net>
34: * @copyright 2000-2015 XOOPS Project (http://xoops.org)
35: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
36: * @link http://xoops.org
37: */
38: class XoopsUserHandler extends XoopsPersistableObjectHandler
39: {
40:
41: /**
42: * Constructor
43: *
44: * @param Connection|null $db database
45: */
46: public function __construct(Connection $db = null)
47: {
48: parent::__construct($db, 'system_user', '\Xoops\Core\Kernel\Handlers\XoopsUser', 'uid', 'uname');
49: }
50: }
51: