XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
xoopsutility.php
Go to the documentation of this file.
1
<?php
20
defined(
'XOOPS_ROOT_PATH'
) or die('Restricted access');
21
31
class
XoopsUtility
32
{
36
function
__construct()
37
{
38
}
39
43
function
XoopsUtility()
44
{
45
$this->__construct();
46
}
47
55
function
recursive(
$handler
, $data)
56
{
57
if
(is_array($data)) {
58
$return = array_map(array(
59
'XoopsUtility'
,
60
'recursive'
),
$handler
, $data);
61
return
$return;
62
}
63
// single function
64
if
(is_string(
$handler
)) {
65
return
function_exists(
$handler
) ?
$handler
($data) : $data;
66
}
67
// Method of a class
68
if
(is_array(
$handler
)) {
69
return
call_user_func(array(
70
$handler
[0] ,
71
$handler
[1]), $data);
72
}
73
return
$data;
74
}
75
}
76
77
?>
L:
0xoops
xoops-2.5.6
htdocs
class
utility
xoopsutility.php
Generated on Fri May 10 2013 01:04:24 for XOOPS 2.5.6 by
1.8.3.1