xmlrpc_error

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/xmlrpc.inc, строка 345

Версии
5 – 6
xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE)

▾ 9 функции вызывают xmlrpc_error()

blogapi_error in modules/blogapi/blogapi.module
Подготавливает сообщения об ошибках для возврата программе или скрипту, вызывающему XML-RPC.
xmlrpc_clear_error in includes/xmlrpc.inc
Clears any previous error.
xmlrpc_errno in includes/xmlrpc.inc
Возвращает клиенту номер последней ошибки XML-RPC.
xmlrpc_error_msg in includes/xmlrpc.inc
Returns the last XML-RPC client error message
xmlrpc_server_call in includes/xmlrpcs.inc
Dispatch the request and any parameters to the appropriate handler.
xmlrpc_server_error in includes/xmlrpcs.inc
Throw an XML-RPC error.
xmlrpc_server_method_signature in includes/xmlrpcs.inc
XML-RPC method system.methodSignature maps to this function.
xmlrpc_server_multicall in includes/xmlrpcs.inc
_xmlrpc in includes/xmlrpc.inc
Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.

Код

<?php
function xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE) {
  static $xmlrpc_error;
  if (isset($code)) {
    $xmlrpc_error = new stdClass();
    $xmlrpc_error->is_error = TRUE;
    $xmlrpc_error->code = $code;
    $xmlrpc_error->message = $message;
  }
  elseif ($reset) {
    $xmlrpc_error = NULL;
  }
  return $xmlrpc_error;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему