phpDocumentor xml
xmlrpc
[ class tree: xml ] [ index: xml ] [ all elements ]

Procedural File: _xmlrpcs.funcs.php

Source Location: /qp_inc/xmlrpc/model/_xmlrpcs.funcs.php

Page Details
Copyright:  Edd Dumbill <edd@usefulinc.com> (C) 1999-2002
See:  http://xmlrpc.usefulinc.com/doc/
See:  http://phpxmlrpc.sourceforge.net/
Filesource:  Source Code for this file
Functions
logIO  [line 32]

boolean logIO( $msg, [ $newline = false]  )

Used for logging, only if $debug_xmlrpc_logging is true

Parameters:
   $msg: 
   $newline: 

API Tags:
Return:  Have we logged?


[ Top ]
starify  [line 60]

string starify( string $string  )

Returns a string replaced by stars, for passwords.

Parameters:
string   $string:  the source string

API Tags:
Return:  same length, but only stars


[ Top ]
xmlrpcs_check_cats  [line 450]

boolean xmlrpcs_check_cats( integer &$maincat, object The &$Blog, array &$extracats  )

Check whether the main category and the extra categories are valid in a Blog's context and try to fix errors.

Parameters:
integer   &$maincat:  The main category to check (by reference).
object The   &$Blog:  Blog to which the category is supposed to belong to (by reference).
array   &$extracats:  Extra categories for the post (by reference).

API Tags:
Return:  False on error (use xmlrpcs_resperror() to return it), true on success.

Information Tags:
Author:  Tilman BLUMENBACH / Tblue

[ Top ]
xmlrpcs_edit_item  [line 387]

xmlrpcmsg xmlrpcs_edit_item( Item &$edited_Item, string $post_title, string $content, string $post_date, integer $main_cat, array $cat_IDs, string $status  )

Edit an Item and return an XML-RPC response

Parameters:
Item   &$edited_Item: 
string   $post_title:  HTML
string   $content:  HTML
string   $post_date:  date
integer   $main_cat:  main category
array   $cat_IDs:  of integers : extra categories
string   $status:  status


[ Top ]
xmlrpcs_get_Blog  [line 190]

Blog &xmlrpcs_get_Blog( xmlrpcmsg $m, integer $blog_param  )

Get current Blog for an XML-RPC request.

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
integer   $blog_param:  idx of blog param

API Tags:
Return:  or NULL


[ Top ]
xmlrpcs_get_Item  [line 228]

Blog &xmlrpcs_get_Item( xmlrpcmsg $m, integer $postid_param  )

Get current Item for an XML-RPC request.

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
integer   $postid_param:  idx of postid param

API Tags:
Return:  or NULL


[ Top ]
xmlrpcs_login  [line 150]

User &xmlrpcs_login( xmlrpcmsg $m, integer $login_param, integer $pass_param  )

Get current_User for an XML-RPC request - Includes login (password) check.

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
integer   $login_param:  idx of login param in XML-RPC Message
integer   $pass_param:  idx of pass param in XML-RPC Message

API Tags:
Return:  or NULL


[ Top ]
xmlrpcs_new_item  [line 328]

xmlrpcmsg xmlrpcs_new_item( string $post_title, string $content, string $post_date, integer $main_cat, array $cat_IDs, string $status  )

Create a new Item and return an XML-RPC response

Parameters:
string   $post_title:  HTML
string   $content:  HTML
string   $post_date:  date
integer   $main_cat:  main category
array   $cat_IDs:  of integers : extra categories
string   $status:  status


[ Top ]
xmlrpcs_resperror  [line 265]

xmlrpcresp xmlrpcs_resperror( [integer $errcode = NULL], [string $errmsg = NULL]  )

If no errcode or errmsg given, will use the last one that has been set previously.

Parameters:
integer   $errcode: 
string   $errmsg: 


[ Top ]
_b2_or_mt_get_categories  [line 77]

xmlrpcresp _b2_or_mt_get_categories( string $type, xmlrpcmsg $m  )

Helper for b2_getcategories() and mt_getPostCategories(), because they differ only in the "categoryId" case ("categoryId" (b2) vs "categoryID" (MT))

Parameters:
string   $type:  Type, either "b2" or "mt"
xmlrpcmsg   $m:  XML-RPC Message
  1. blogid (string): Unique identifier of the blog to query
  2. username (string): Login for a Blogger user who is member of the blog.
  3. password (string): Password for said username.

API Tags:
Return:  XML-RPC Response


[ Top ]