Procedural File: _xmlrpcs.funcs.php
Source Location: /blogs/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_can_view_item [line 824]
boolean xmlrpcs_can_view_item(
object The &$Item, object The &$current_User
)
|
|
Check that an User can view a specific Item.
Parameters:
|
object The |
&$Item: |
Item (by reference). |
|
object The |
&$current_User: |
User (by reference). |
API Tags:
| Return: | True if permission granted, false otherwise. |
xmlrpcs_check_cats [line 861]
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 762]
xmlrpcmsg xmlrpcs_edit_item(
Item &$edited_Item, string $post_title, string $content, string $post_date, integer $main_cat, array $cat_IDs, string $status, [NULL|string $tags = NULL]
)
|
|
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 |
|
NULL|string |
$tags: |
Tags (NULL to leave tags unchanged) |
xmlrpcs_get_Blog [line 546]
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 584]
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 687]
xmlrpcmsg xmlrpcs_new_item(
string $post_title, string $content, string $post_date, integer $main_cat, array $cat_IDs, string $status, [string $tags = ''], [string $allow_comments = 'open'], [string $excerpt = '']
)
|
|
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 |
|
string |
$tags: |
Tags |
|
string |
$allow_comments: |
Comment status. See Item::$comment_status. |
|
string |
$excerpt: |
Excerpt |
xmlrpcs_resperror [line 621]
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 422]
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:
_mw_blogger_deletepost [line 80]
blogger.deletePost deletes a given post.
This API call is not documented on http://www.blogger.com/developers/api/1_docs/
Parameters:
|
xmlrpcmsg |
$m: |
XML-RPC Message - appkey (string): Unique identifier/passcode of the application sending the post.
(See access info http://www.blogger.com/developers/api/1_docs/#access .)
- postid (string): Unique identifier of the post to be deleted.
- username (string): Login for a Blogger user who has permission to edit the given
post (either the user who originally created it or an admin of the blog).
- password (string): Password for said username.
|
API Tags:
_wp_mw_getcategories [line 129]
metaWeblog.getCategories
Parameters:
|
xmlrpcmsg |
$m: |
XML-RPC Message - blogid (string): Unique identifier of the blog the post will be added to.
Currently ignored in b2evo, in favor of the category.
- username (string): Login for a Blogger user who has permission to edit the given
post (either the user who originally created it or an admin of the blog).
- password (string): Password for said username.
|
API Tags:
| See: | metawebloggetcategories |
_wp_mw_newmediaobject [line 218]
metaWeblog.newMediaObject image upload wp.uploadFile
image is supplied coded in the info struct as bits
Parameters:
|
xmlrpcmsg |
$m: |
XML-RPC Message - blogid (string): Unique identifier of the blog the post will be added to.
Currently ignored in b2evo, in favor of the category.
- username (string): Login for a Blogger user who has permission to edit the given
post (either the user who originally created it or an admin of the blog).
- password (string): Password for said username.
- struct (struct)
- name : filename
- type : mimetype
- bits : base64 encoded file
|
API Tags:
| Return: | XML-RPC Response |
| See: | metaweblognewmediaobject |
| See: | wp.uploadFile |
Information Tags:
| Todo: | do not overwrite existing pics with same name |
| Todo: | extensive permissions |
_wp_or_blogger_getusersblogs [line 359]
void _wp_or_blogger_getusersblogs(
$type, $m
)
|
|
Parameters: