| [ Index ] |
PHP Cross Reference of Xoops v2.4.5 code documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Xoops Localization function 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 The XOOPS Project http://sourceforge.net/projects/xoops/ 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @package core 15 * @since 2.3.0 16 * @author Taiwen Jiang <phppp@users.sourceforge.net> 17 * @version $Id: xoopslocal.php 4897 2010-06-19 02:55:48Z phppp $ 18 */ 19 defined('XOOPS_ROOT_PATH') or die('Restricted access'); 20 21 /** 22 * XoopsLocalWrapper 23 * 24 */ 25 class XoopsLocalWrapper 26 { 27 function load($language = null) 28 { 29 if (class_exists('Xoopslocal')) { 30 return true; 31 } 32 require $GLOBALS['xoops']->path('class/xoopslocal.php'); 33 xoops_loadLanguage('locale'); 34 35 return true; 36 } 37 } 38 39 /** 40 * Enter description here... 41 * 42 * @return unknown 43 */ 44 function xoops_local() 45 { 46 // get parameters 47 $func_args = func_get_args(); 48 $func = array_shift($func_args); 49 // local method defined 50 return call_user_func_array(array( 51 'XoopsLocal' , 52 $func), $func_args); 53 } 54 55 XoopsLocalWrapper::load(); 56 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Aug 1 01:39:09 2010 |