43 if (!isset($args[0]) || empty($args[0])) {
44 $this->
addLog(
'No args defined');
45 $this->
addLog(
'Available args:');
47 $this->
addLog(
'- ' . $proc);
57 foreach ($args as $key => $arg) {
63 $method =
'proc' . ucfirst($action);
64 if (!method_exists($this, $method)) {
65 $this->
addLog(
'Unknown arg: ' . $action);
66 $this->
addLog(
'Available args:');
67 foreach ($this->
getProcs() as $procName => $procDesc) {
68 $this->
addLog(
'- ' . $procName .
': ' . $procDesc);
75 call_user_func(array($this, $method), $newArgs);