Procedural File: _xmlrpcs.funcs.php
Source Location: /qp_inc/xmlrpc/model/_xmlrpcs.funcs.php
Functions
boolean logIO(
$msg, [ $newline = false]
)
|
|
Used for logging, only if $debug_xmlrpc_logging is true
Parameters:
API Tags:
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 |
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 |
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 |
xmlrpcs_get_Blog [line 190]
Get current Blog for an XML-RPC request.
Parameters:
|
xmlrpcmsg |
$m: |
XML-RPC Message |
|
integer |
$blog_param: |
idx of blog param |
API Tags:
xmlrpcs_get_Item [line 228]
Get current Item for an XML-RPC request.
Parameters:
|
xmlrpcmsg |
$m: |
XML-RPC Message |
|
integer |
$postid_param: |
idx of postid param |
API Tags:
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:
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 |
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: |
|
_b2_or_mt_get_categories [line 77]
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 - blogid (string): Unique identifier of the blog to query
- username (string): Login for a Blogger user who is member of the blog.
- password (string): Password for said username.
|
API Tags:
|
|