| 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 (https://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: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the method '{$name}' is not executed") . '!'); |
| 51: | |
| 52: | |
| 53: | return null; |
| 54: | } |
| 55: | |
| 56: | /** |
| 57: | * Set Magic Function |
| 58: | * |
| 59: | * @param string $name |
| 60: | * @param array $args |
| 61: | * @return null |
| 62: | */ |
| 63: | public function __set($name, $args) |
| 64: | { |
| 65: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not set") . '!'); |
| 66: | |
| 67: | return null; |
| 68: | } |
| 69: | |
| 70: | /** |
| 71: | * Get Magic Function |
| 72: | * |
| 73: | * @param string $name |
| 74: | * @return null |
| 75: | */ |
| 76: | public function __get($name) |
| 77: | { |
| 78: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not vailable") . '!'); |
| 79: | |
| 80: | return null; |
| 81: | } |
| 82: | } |
| 83: | |
| 84: | /** |
| 85: | * XOOPS Block Instance Handler Class. (Singelton) |
| 86: | * |
| 87: | * This class is responsible for providing data access mechanisms to the data source |
| 88: | * of XOOPS block class objects. |
| 89: | * |
| 90: | * @author Taiwen Jiang <phppp@users.sourceforge.net> |
| 91: | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
| 92: | * @package kernel |
| 93: | * @subpackage block |
| 94: | */ |
| 95: | class XoopsBlockInstanceHandler |
| 96: | { |
| 97: | /** |
| 98: | * Enter description here... |
| 99: | * |
| 100: | */ |
| 101: | public function __construct() |
| 102: | { |
| 103: | } |
| 104: | |
| 105: | /** |
| 106: | * Call Magic Function |
| 107: | * |
| 108: | * @param string $name |
| 109: | * @param array $args |
| 110: | * @return null |
| 111: | */ |
| 112: | public function __call($name, $args) |
| 113: | { |
| 114: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the method '{$name}' is not executed") . '!'); |
| 115: | |
| 116: | return null; |
| 117: | } |
| 118: | |
| 119: | /** |
| 120: | * Set Magic Function |
| 121: | * |
| 122: | * @param string $name |
| 123: | * @param array $args |
| 124: | * @return null |
| 125: | */ |
| 126: | public function __set($name, $args) |
| 127: | { |
| 128: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not set") . '!'); |
| 129: | |
| 130: | return null; |
| 131: | } |
| 132: | |
| 133: | /** |
| 134: | * Get Magic Function |
| 135: | * |
| 136: | * @param string $name |
| 137: | * @return null |
| 138: | */ |
| 139: | public function __get($name) |
| 140: | { |
| 141: | $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated" . (empty($name) ? '' : " thus the variable '{$name}' is not available") . '!'); |
| 142: | |
| 143: | return null; |
| 144: | } |
| 145: | } |
| 146: |