b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (CVS HEAD) [ class tree: main ] [ index: main ] [ all elements ]

Class: xmlrpcval

Source Location: /blogs/inc/_ext/xmlrpc/_xmlrpc.inc.php

Class xmlrpcval

Property Summary
mixed   $me  
mixed   $mytype  
mixed   $_php_class  

[ Top ]
Method Summary
xmlrpcval   xmlrpcval()  
int   addArray()   Add an array of xmlrpcval objects to an xmlrpcval
int   addScalar()   Add a single php value to an (unitialized) xmlrpcval
int   addStruct()   Add an array of named xmlrpcval objects to an xmlrpcval
xmlrpcval   arraymem()   Returns the m-th member of an xmlrpcval of struct type
integer   arraysize()   Returns the number of members in an xmlrpcval of array type
void   dump()  
void   getval()  
string   kindOf()   Returns a string containing "struct", "array" or "scalar" describing the base type of the value
string   scalartyp()   Returns the type of the xmlrpcval.
mixed   scalarval()   Returns the value of a scalar xmlrpcval
string   serialize()   Returns xml representation of the value. XML prologue not included
void   serializeval()  
xmlrpcval   structeach()   Return next member element for xmlrpcvals of type struct.
xmlrpcval   structmem()   Returns the value of a given struct member (an xmlrpcval object in itself).
boolean   structmemexists()   Checks wheter a struct member with a given name is present.
void   structreset()   Reset internal pointer for xmlrpcvals of type struct.
integer   structsize()   Returns the number of members in an xmlrpcval of struct type

[ Top ]
Properties
mixed   $me = array() [line 2683]

[ Top ]
mixed   $mytype [line 2684]

[ Top ]
mixed   $_php_class = null [line 2685]

[ Top ]
Methods
Constructor xmlrpcval  [line 2691]

  xmlrpcval xmlrpcval( [mixed $val = -1], [string $type = '']  )

Parameters:
mixed   $val: 
string   $type:  any valid xmlrpc type name (lowercase). If null, 'string' is assumed


[ Top ]
addArray  [line 2807]

  int addArray( array $vals  )

Add an array of xmlrpcval objects to an xmlrpcval

Parameters:
array   $vals: 

API Tags:
Return:  1 or 0 on failure
Access:  public

Information Tags:
Todo:  add some checking for $vals to be an array of xmlrpcvals?

[ Top ]
addScalar  [line 2751]

  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


[ Top ]
addStruct  [line 2836]

  int addStruct( array $vals  )

Add an array of named xmlrpcval objects to an xmlrpcval

Parameters:
array   $vals: 

API Tags:
Return:  1 or 0 on failure
Access:  public

Information Tags:
Todo:  add some checking for $vals to be an array?

[ Top ]
arraymem  [line 3123]

  xmlrpcval arraymem( integer $m  )

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:
Access:  public


[ Top ]
arraysize  [line 3133]

  integer arraysize( )

Returns the number of members in an xmlrpcval of array type


API Tags:
Access:  public


[ Top ]
dump  [line 2859]

  void dump( $ar  )

Parameters:
   $ar: 


[ Top ]
getval  [line 3050]

  void getval( )



[ Top ]
kindOf  [line 2879]

  string kindOf( )

Returns a string containing "struct", "array" or "scalar" describing the base type of the value


API Tags:
Access:  public


[ Top ]
scalartyp  [line 3106]

  string scalartyp( )

Returns the type of the xmlrpcval.

For integers, 'int' is always returned in place of 'i4'


API Tags:
Access:  public


[ Top ]
scalarval  [line 3093]

  mixed scalarval( )

Returns the value of a scalar xmlrpcval


API Tags:
Access:  public


[ Top ]
serialize  [line 2981]

  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:
Access:  public


[ Top ]
serializeval  [line 2993]

  void serializeval( $o  )

Parameters:
   $o: 


[ Top ]
structeach  [line 3043]

  xmlrpcval structeach( )

Return next member element for xmlrpcvals of type struct.


API Tags:
Access:  public


[ Top ]
structmem  [line 3024]

  xmlrpcval structmem( string $m  )

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:
Access:  public


[ Top ]
structmemexists  [line 3012]

  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:
Access:  public


[ Top ]
structreset  [line 3033]

  void structreset( )

Reset internal pointer for xmlrpcvals of type struct.


API Tags:
Access:  public


[ Top ]
structsize  [line 3143]

  integer structsize( )

Returns the number of members in an xmlrpcval of struct type


API Tags:
Access:  public


[ Top ]

Documentation generated on Sat, 06 Mar 2010 04:28:54 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).