1: <?php
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: * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
14: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15: * @since 1.0
16: * @author trabis <lusopoemas@gmail.com>
17: * @version $Id$
18: */
19:
20: class UserconfigsSystemPlugin extends Xoops\Module\Plugin\PluginAbstract implements SystemPluginInterface
21: {
22: public function userPosts($uid)
23: {
24: return 0;
25: }
26:
27: public function waiting()
28: {
29: return array();
30: }
31:
32: public function backend($limit)
33: {
34: return array();
35: }
36:
37: public function userMenus()
38: {
39: $helper = Userconfigs::getInstance();
40: $ret['name'] = $helper->getModule()->getVar('name');
41: $ret['link'] = 'index.php';
42: $ret['image'] = $helper->url('icons/logo_small.png');
43: return $ret;
44: }
45: }
46: