xmlrpcval xmlrpcval(
[mixed
$val = -1], [string
$type = '']
)
|
|
Parameters:
|
mixed |
$val: |
|
|
string |
$type: |
any valid xmlrpc type name (lowercase). If null, 'string' is assumed |
int addArray(
array
$vals
)
|
|
Add an array of xmlrpcval objects to an xmlrpcval
Parameters:
API Tags:
| Return: | 1 or 0 on failure |
| Access: | public |
Information Tags:
| Todo: | add some checking for $vals to be an array of xmlrpcvals? |
int addScalar(
mixed
$val, [string
$type = 'string']
)
|
|
Add a single php value to an (unitialized) xmlrpcval
Parameters:
|
mixed |
$val: |
|
|
string |
$type: |
|
API Tags:
| Return: | 1 or 0 on failure |
int addStruct(
array
$vals
)
|
|
Add an array of named xmlrpcval objects to an xmlrpcval
Parameters:
API Tags:
| Return: | 1 or 0 on failure |
| Access: | public |
Information Tags:
| Todo: | add some checking for $vals to be an array? |
Returns the m-th member of an xmlrpcval of struct type
Parameters:
|
integer |
$m: |
the index of the value to be retrieved (zero based) |
API Tags:
Returns the number of users in an xmlrpcval of array type
API Tags:
Returns a string containing "struct", "array" or "scalar" describing the base type of the value
API Tags:
Returns the type of the xmlrpcval.
For integers, 'int' is always returned in place of 'i4'
API Tags:
Returns the value of a scalar xmlrpcval
API Tags:
string serialize(
[string
$charset_encoding = '']
)
|
|
Returns xml representation of the value. XML prologue not included
Parameters:
|
string |
$charset_encoding: |
the charset to be used for serialization. if null, US-ASCII is assumed |
API Tags:
void serializedata(
$typ,
$val, [
$charset_encoding = '']
)
|
|
Parameters:
|
|
$typ: |
|
|
|
$val: |
|
|
|
$charset_encoding: |
|
API Tags:
Return next member element for xmlrpcvals of type struct.
API Tags:
Returns the value of a given struct member (an xmlrpcval object in itself).
Will raise a php warning if struct member of given name does not exist
Parameters:
|
string |
$m: |
the name of the struct member to be looked up |
API Tags:
boolean structmemexists(
string
$m
)
|
|
Checks wheter a struct member with a given name is present.
Works only on xmlrpcvals of type struct.
Parameters:
|
string |
$m: |
the name of the struct member to be looked up |
API Tags:
Reset internal pointer for xmlrpcvals of type struct.
API Tags:
Returns the number of users in an xmlrpcval of struct type
API Tags: