mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
hook can receive up to 4 parameters
This commit is contained in:
parent
61fbbd6722
commit
ed0e13ea0b
|
@ -105,12 +105,26 @@ class SeedDMS_View_Common {
|
||||||
$ret = $tmpret;
|
$ret = $tmpret;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
default:
|
|
||||||
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
|
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
|
||||||
if(is_string($tmpret))
|
if(is_string($tmpret))
|
||||||
$ret .= $tmpret;
|
$ret .= $tmpret;
|
||||||
else
|
else
|
||||||
$ret = $tmpret;
|
$ret = $tmpret;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3));
|
||||||
|
if(is_string($tmpret))
|
||||||
|
$ret .= $tmpret;
|
||||||
|
else
|
||||||
|
$ret = $tmpret;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
case 5:
|
||||||
|
$tmpret = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
|
||||||
|
if(is_string($tmpret))
|
||||||
|
$ret .= $tmpret;
|
||||||
|
else
|
||||||
|
$ret = $tmpret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user