1: <?php
2: /**
3: * XOOPS Kernel Class
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 (c) 2000-2016 XOOPS Project (www.xoops.org)
13: * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
14: * @package kernel
15: * @since 2.3.0
16: */
17: /**
18: * XOOPS Block legacy Instance handler
19: * @author Taiwen Jiang <phppp@users.sourceforge.net>
20: */
21: defined('XOOPS_ROOT_PATH') || exit('Restricted access');
22:
23: /**
24: * Xoops Block Instance
25: *
26: * @author Taiwen Jiang <phppp@users.sourceforge.net>
27: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
28: *
29: * @package kernel
30: */
31: class XoopsBlockInstance
32: {
33: /**
34: * Constructor
35: *
36: */
37: public function __construct()
38: {
39: }
40:
41: /**
42: * Call Magic Function
43: *
44: * @param string $name
45: * @param array $args
46: * @return null
47: */
48: public function __call($name, $args)
49: {
50: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the method '{$name}' is not executed") . '!', E_USER_WARNING);
51:
52: return null;
53: }
54:
55: /**
56: * Set Magic Function
57: *
58: * @param string $name
59: * @param array $args
60: * @return null
61: */
62: public function __set($name, $args)
63: {
64: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not set") . '!', E_USER_WARNING);
65:
66: return false;
67: }
68:
69: /**
70: * Get Magic Function
71: *
72: * @param string $name
73: * @return null
74: */
75: public function __get($name)
76: {
77: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not vailable") . '!', E_USER_WARNING);
78:
79: return null;
80: }
81: }
82:
83: /**
84: * XOOPS Block Instance Handler Class. (Singelton)
85: *
86: * This class is responsible for providing data access mechanisms to the data source
87: * of XOOPS block class objects.
88: *
89: * @author Taiwen Jiang <phppp@users.sourceforge.net>
90: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
91: * @package kernel
92: * @subpackage block
93: */
94: class XoopsBlockInstanceHandler
95: {
96: /**
97: * Enter description here...
98: *
99: */
100: public function __construct()
101: {
102: }
103:
104: /**
105: * Call Magic Function
106: *
107: * @param string $name
108: * @param array $args
109: * @return null
110: */
111: public function __call($name, $args)
112: {
113: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the method '{$name}' is not executed") . '!', E_USER_WARNING);
114:
115: return null;
116: }
117:
118: /**
119: * Set Magic Function
120: *
121: * @param string $name
122: * @param array $args
123: * @return null
124: */
125: public function __set($name, $args)
126: {
127: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not set") . '!', E_USER_WARNING);
128:
129: return false;
130: }
131:
132: /**
133: * Get Magic Function
134: *
135: * @param string $name
136: * @return null
137: */
138: public function __get($name)
139: {
140: trigger_error("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not vailable") . '!', E_USER_WARNING);
141:
142: return null;
143: }
144: }
145: