[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> IXR_Library.php (summary)

(no description)

File Size: 1135 lines (33 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 10 classes

IXR_Value:: (4 methods):
  __construct()
  calculateType()
  getXml()
  isStruct()

IXR_Message:: (5 methods):
  __construct()
  parse()
  tag_open()
  cdata()
  tag_close()

IXR_Server:: (11 methods):
  __construct()
  serve()
  call()
  error()
  output()
  hasMethod()
  setCapabilities()
  getCapabilities()
  setCallbacks()
  listMethods()
  multiCall()

IXR_Request:: (3 methods):
  __construct()
  getLength()
  getXml()

IXR_Client:: (6 methods):
  __construct()
  query()
  getResponse()
  isError()
  getErrorCode()
  getErrorMessage()

IXR_Error:: (2 methods):
  __construct()
  getXml()

IXR_Date:: (6 methods):
  __construct()
  parseTimestamp()
  parseIso()
  getIso()
  getXml()
  getTimestamp()

IXR_Base64:: (2 methods):
  __construct()
  getXml()

IXR_IntrospectionServer:: (5 methods):
  __construct()
  addCallback()
  call()
  methodSignature()
  methodHelp()

IXR_ClientMulticall:: (3 methods):
  __construct()
  addCall()
  query()


Class: IXR_Value  - X-Ref

IXR - The Incutio XML-RPC Library

Copyright (c) 2010, Incutio Ltd.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Incutio Ltd. nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

__construct($data, $type = false)   X-Ref

param: mixed $data
param: bool $type

calculateType()   X-Ref

return: string

getXml()   X-Ref

return: bool|string

isStruct($array)   X-Ref
Checks whether or not the supplied array is a struct or not

param: array $array
return: boolean

Class: IXR_Message  - X-Ref

IXR_MESSAGE

__construct($message)   X-Ref

param: string $message

parse()   X-Ref

return: bool

tag_open($parser, $tag, $attr)   X-Ref

param: $parser
param: string $tag
param: $attr

cdata($parser, $cdata)   X-Ref

param: $parser
param: string $cdata

tag_close($parser, $tag)   X-Ref

param: $parser
param: $tag

Class: IXR_Server  - X-Ref

IXR_Server

__construct($callbacks = false, $data = false, $wait = false)   X-Ref

param: array|bool $callbacks
param: bool $data
param: bool $wait

serve($data = false)   X-Ref

param: bool|string $data

call($methodname, $args)   X-Ref

param: string $methodname
param: array $args
return: IXR_Error|mixed

error($error, $message = false)   X-Ref

param: int $error
param: string|bool $message

output($xml)   X-Ref

param: string $xml

hasMethod($method)   X-Ref

param: string $method
return: bool

setCapabilities()   X-Ref
No description

getCapabilities()   X-Ref

return: mixed

setCallbacks()   X-Ref
No description

listMethods()   X-Ref

return: array

multiCall($methodcalls)   X-Ref

param: array $methodcalls
return: array

Class: IXR_Request  - X-Ref

IXR_Request

__construct($method, $args)   X-Ref

param: string $method
param: array $args

getLength()   X-Ref

return: int

getXml()   X-Ref

return: string

Class: IXR_Client  - X-Ref

IXR_Client

__construct($server, $path = false, $port = 80, $timeout = 15)   X-Ref

param: string $server
param: string|bool $path
param: int $port
param: int $timeout

query()   X-Ref
parameters: method and arguments

return: bool success or error

getResponse()   X-Ref

return: mixed

isError()   X-Ref

return: bool

getErrorCode()   X-Ref

return: int

getErrorMessage()   X-Ref

return: string

Class: IXR_Error  - X-Ref

IXR_Error

__construct($code, $message)   X-Ref

param: int $code
param: string $message

getXml()   X-Ref

return: string

Class: IXR_Date  - X-Ref

IXR_Date

__construct($time)   X-Ref

param: int|string $time

parseTimestamp($timestamp)   X-Ref
Parse unix timestamp

param: int $timestamp

parseIso($iso)   X-Ref
Parses less or more complete iso dates and much more, if no timezone given assumes UTC

param: string $iso

getIso()   X-Ref
Returns date in ISO 8601 format

return: string

getXml()   X-Ref
Returns date in valid xml

return: string

getTimestamp()   X-Ref
Returns Unix timestamp

return: int

Class: IXR_Base64  - X-Ref

IXR_Base64

__construct($data)   X-Ref

param: string $data

getXml()   X-Ref

return: string

Class: IXR_IntrospectionServer  - X-Ref

IXR_IntrospectionServer

__construct()   X-Ref
Constructor


addCallback($method, $callback, $args, $help)   X-Ref

param: string $method
param: string $callback
param: string[] $args
param: string $help

call($methodname, $args)   X-Ref

param: string $methodname
param: array $args
return: IXR_Error|mixed

methodSignature($method)   X-Ref

param: string $method
return: array|IXR_Error

methodHelp($method)   X-Ref

param: string $method
return: mixed

Class: IXR_ClientMulticall  - X-Ref

IXR_ClientMulticall

__construct($server, $path = false, $port = 80)   X-Ref

param: string $server
param: string|bool $path
param: int $port

addCall()   X-Ref
Add a call


query()   X-Ref

return: bool