Minahito
minah****@users*****
2006年 10月 14日 (土) 02:51:47 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.4 xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.4 Fri Oct 13 18:41:52 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php Sat Oct 14 02:51:47 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.1.2.4 2006/10/13 09:41:52 minahito Exp $ + * @version $Id: Legacy_BlockProcedure.class.php,v 1.1.2.1.2.5 2006/10/13 17:51:47 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) die(); @@ -271,47 +271,4 @@ } } -/** - * Static method collection for blocks in the public side. - */ -class Legacy_BlockUtils -{ - /** - * Creates a instance of the block procedure with the generating convention. - * And, returns it. - * @static - * @return Legacy_BlockProcedure - */ - function createBlockProcedure(&$block) - { - // - // IMPORTANT CONVENTION - // - $retBlock = null; - $func = $block->get('show_func'); - if (substr($func, 0, 4) == 'cl::') { - $className = ucfirst($block->get('dirname')) . '_' . substr($func, 4); - if (!class_exists($className)) { - $filePath = XOOPS_ROOT_PATH . '/modules/' . $block->get('dirname') . '/blocks/' . $block->get('func_file'); - if (!file_exists($filePath)) { - continue; - } - - require_once $filePath; - - if (!class_exists($className)) { - continue; - } - } - - $retBlock =& new $className($block); - } - else { - $retBlock =& new Legacy_BlockProcedureAdapter($block); - } - - return $retBlock; - } -} - ?> \ No newline at end of file