Can I do this through two function calls? Ie, if my first call is a static
core::load('module', 'arg1', 'arg2');
Can I then, from within load somehow pass arg1 and arg2?
$pPointer = new object($args)
? I know how to grab the muliple arguments from load using func_get_args/func_num_args, but then I want to pass it on again, using a single variable if possible. Or do I have to do something like
PHP Code:
switch (func_num_args()) {
case 1: $pPointer = new object(func_get_arg(0));
case 2: $pPointer = new object(func_get_arg(0), func_get_arg(1));
default: ....
}
Basically I'm not passing the arguments straight to the function or object I want to call, they're going through an intermediary which needs to pass them on again. I know I just repeated myself a few times there, but I'm trying to work it out in my head, and I'm at the school right now so I don't have my handy test server around to throw attempts at. I stopped using theirs ever since they randomly deleted my site off of it by accident, and since it took them a month to get back to me on some requests I had.
-m