/** * Rest protocol uses named parameters, hence the calling convention is different: * the php functions are expected to receive an array as the only param, containing * in it all actual parameters with their names. */ function handleRequest($functionName, $params) { return parent::handleRequest($functionName, array($params)); }