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: * Publisher class
14: *
15: * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
16: * @license GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
17: * @package Class
18: * @subpackage Utils
19: * @since 1.0
20: * @author trabis <lusopoemas@gmail.com>
21: * @version $Id$
22: */
23:
24: class Publisher extends Xoops\Module\Helper\HelperAbstract
25: {
26: /**
27: * Init the module
28: *
29: * @return null|void
30: */
31: public function init()
32: {
33: $this->setDirname('publisher');
34: //$this->setDebug(true);
35: $this->loadLanguage('modinfo');
36: }
37:
38: /**
39: * @return Publisher
40: */
41: static function getInstance() {
42: return parent::getInstance();
43: }
44:
45: /**
46: * @return PublisherItemHandler
47: */
48: public function getItemHandler()
49: {
50: return $this->getHandler('item');
51: }
52:
53: /**
54: * @return PublisherCategoryHandler
55: */
56: public function getCategoryHandler()
57: {
58: return $this->getHandler('category');
59: }
60:
61: /**
62: * @return PublisherPermissionHandler
63: */
64: public function getPermissionHandler()
65: {
66: return $this->getHandler('permission');
67: }
68:
69: /**
70: * @return PublisherFileHandler
71: */
72: public function getFileHandler()
73: {
74: return $this->getHandler('file');
75: }
76:
77: /**
78: * @return PublisherMimetypeHandler
79: */
80: public function getMimetypeHandler()
81: {
82: return $this->getHandler('mimetype');
83: }
84:
85: /**
86: * @return PublisherRatingHandler
87: */
88: public function getRatingHandler()
89: {
90: return $this->getHandler('rating');
91: }
92:
93: /**
94: * @return PublisherGrouppermHandler
95: */
96: public function getGrouppermHandler()
97: {
98: return $this->getHandler('groupperm');
99: }
100: }
101: