/** * * * * @param mixed $code * This is a description * @param mixed $message * This is a description * @param mixed $useAttrs * This is a description * @param mixed $stringOutput * This is a description * @return mixed This is the return value description */ public static function error($code, $message, $useAttrs = true, $stringOutput = true) { $result = new Response(array(), false, $useAttrs); $result->appendError($code, $message); if ($stringOutput) { return $result->xml->asXml(); } else { return $result->xml; } }