Builds a query string from an map of parameters.
static string
buildQueryString
(array $args)
-
array
$args: the list of query parameters.
This method generates a request-unique sting by combining the path_info and request paramters.
static string
generateSalt
(string $path, array $args)
-
string
$path: the method name.
-
array
$args: the map of query arguments.
Encodes and decodes special content sent over the network.
static string
recode
(string $buffer, string $salt, boolean $encode)
-
string
$buffer: the content to be processed.
-
string
$salt: the string used to scramble the content.
-
boolean
$encode: true if encode, false if decoding.
Adds the ack element to a SimpleXMLElement.
static void
sxeAck
(SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the parent element.
Adds the attributes element to a SimpleXMLElement.
static void
sxeAddAttributes
(SimpleXMLElement $sxe, array $map)
-
SimpleXMLElement
$sxe: the parent element.
-
array
$map: map of attributes.
Adds the exception element to a SimpleXMLElement.
static
void
sxeAddException
(
SimpleXMLElement $sxe,
NarutoException $obj,
string $seq)
-
SimpleXMLElement
$sxe: the root element.
-
NarutoException
$obj: the exception.
-
string
$seq: the sequence number.
Adds the forum element to a SimpleXMLElement.
static
void
sxeAddForum
(
SimpleXMLElement $sxe,
NarutoForum $obj)
-
SimpleXMLElement
$sxe: the parent element.
-
NarutoForum
$obj: the forum.
Adds the forums element to a SimpleXMLElement.
static void
sxeAddForums
(SimpleXMLElement $sxe, array $objs)
-
SimpleXMLElement
$sxe: the parent element.
-
array
$objs: list of NarutoForum objects.
Adds the topic element to a SimpleXMLElement.
static
void
sxeAddTopic
(
SimpleXMLElement $sxe,
NarutoTopic $obj)
-
SimpleXMLElement
$sxe: the parent element.
-
NarutoTopic
$obj: the topic.
Adds the topics element to a SimpleXMLElement.
static void
sxeAddTopics
(SimpleXMLElement $sxe, array $objs)
-
SimpleXMLElement
$sxe: the parent element.
-
array
$objs: list of NarutoTopic objects.
Adds the user element to a SimpleXMLElement.
static
void
sxeAddUser
(
SimpleXMLElement $sxe,
NarutoTopic $obj)
-
SimpleXMLElement
$sxe: the parent element.
-
NarutoTopic
$obj: the topic.
Adds the Decimal element to a SimpleXMLElement.
static void
sxeDecimal
(SimpleXMLElement $sxe, int $val)
-
SimpleXMLElement
$sxe: the parent element.
-
int
$val: the decimal value
Converts a SimpleXMLElement to a map of Attributes.
static array
sxeExtractAttributes
(SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Attributes element.
Converts a SimpleXMLElement to a map of Attributes.
-
SimpleXMLElement
$sxe: the Exception element.
Converts a SimpleXMLElement to a NarutoForum object.
static
NarutoForum
sxeExtractForum
(
SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Forum element.
Converts a SimpleXMLElement to a list of NarutoForum's.
static array
sxeExtractForums
(SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Forums element.
Converts a SimpleXMLElement to a NarutoTopic object.
static
NarutoTopic
sxeExtractTopic
(
SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Topic element.
Converts a SimpleXMLElement to a list of NarutoTopic's.
static array
sxeExtractTopics
(SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Topics element.
Converts a SimpleXMLElement to a NarutoUser object.
static
NarutoTopic
sxeExtractUser
(
SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the Topic element.
Adds the main response element to a SimpleXMLElement. The response element includes the version and seq attributes and is named $method + 'Response'.
static SimpleXMLElement
sxeGetResponse
(SimpleXMLElement $sxe, string $method, string $seq)
-
SimpleXMLElement
$sxe: the root element.
-
string
$method: the method name.
-
string
$seq: the sequence number.
Returns the root element for the XML response.
static SimpleXMLElement
sxeGetRoot
()
Adds the Id element to a SimpleXMLElement.
static void
sxeId
(SimpleXMLElement $sxe, string $val)
-
SimpleXMLElement
$sxe: the parent element.
-
string
$val: the Id value
Adds the nak element to a SimpleXMLElement.
static void
sxeNak
(SimpleXMLElement $sxe)
-
SimpleXMLElement
$sxe: the parent element.