1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Xoopspartners; |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* You may not change or alter any portion of this comment or credits |
7
|
|
|
* of supporting developers from this source code or any supporting source code |
8
|
|
|
* which is considered copyrighted (c) material of the original comment or credit authors. |
9
|
|
|
* This program is distributed in the hope that it will be useful, |
10
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12
|
|
|
* |
13
|
|
|
*------------------------------------ |
14
|
|
|
* Author: Raul Recio (AKA UNFOR) |
15
|
|
|
* Project: The XOOPS Project |
16
|
|
|
*------------------------------------ |
17
|
|
|
*/ |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* XoopsPartners - a partner affiliation links module |
21
|
|
|
* |
22
|
|
|
* @package module\Xoopspartners\class |
23
|
|
|
* @author Raul Recio (aka UNFOR) |
24
|
|
|
* @author XOOPS Module Development Team |
25
|
|
|
* @copyright {@link https://xoops.org 2001-2016 XOOPS Project} |
26
|
|
|
* @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU Public License} |
27
|
|
|
* @link https://xoops.org XOOPS |
28
|
|
|
*/ |
29
|
|
|
|
30
|
|
|
use XoopsModules\Xoopspartners; |
31
|
|
|
|
32
|
|
|
|
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* {@inheritDoc} |
36
|
|
|
* @see \XoopsPersistableObjectHandler |
37
|
|
|
* @copyright copyright © 2000 XOOPS.org |
38
|
|
|
*/ |
39
|
|
|
class PartnersHandler extends \XoopsPersistableObjectHandler |
40
|
|
|
{ |
41
|
|
|
/** |
42
|
|
|
* PartnersHandler constructor |
43
|
|
|
* |
44
|
|
|
* @param \XoopsDatabase|null $db |
45
|
|
|
*/ |
46
|
|
|
public function __construct(\XoopsDatabase $db = null) |
47
|
|
|
{ |
48
|
|
|
parent::__construct($db, 'partners', Partners::class, 'id', 'title'); |
49
|
|
|
} |
50
|
|
|
} |
51
|
|
|
|