Procedural File: metaweblog.php
Source Location: /metaweblog.php
Page Details
Implements the blogger and MetaWeblog APIs.
Includes
require_once
($pivotx_path.'includes/xmlrpc/xmlrpc.inc')
[line 51]
require_once
($pivotx_path.'includes/xmlrpc/xmlrpcs.inc')
[line 52]
require_once
(dirname(__FILE__).'/lib.php')
[line 50]
Including PivotX core functions and XML RPC functions/server.
Functions
deletePost [line 578]
void deletePost(
array $params
)
|
|
blogger.deletePost
Parameters:
|
array |
$params: |
Contains application key (ignored), post id, username, password, and publish status (ignored) |
editPost [line 488]
void editPost(
array $params
)
|
|
blogger.editPost
Parameters:
|
array |
$params: |
Contains application key (ignored), post id, username, password, content, and publish status (ignored) |
getPost [line 540]
void getPost(
array $params
)
|
|
blogger.getPost
Parameters:
|
array |
$params: |
Containsapplication key (ignored), post id, username, and password |
getRecentPosts [line 619]
void getRecentPosts(
array $params
)
|
|
blogger.getRecentPosts
Parameters:
|
array |
$params: |
Contains application key (ignored), blog ID, username, password, and number of posts |
getTemplate [line 763]
void getTemplate(
array $params
)
|
|
blogger.getTemplate
We don't support template editing, so we just return an error.
Parameters:
|
array |
$params: |
Contains application key, blog id, username, password |
getUserInfo [line 683]
void getUserInfo(
array $params
)
|
|
blogger.getUserInfo
Parameters:
|
array |
$params: |
Contains application key (ignored), username and password. |
getUsersBlogs [line 715]
void getUsersBlogs(
array $params
)
|
|
blogger.getUsersBlogs and metaWeblog.getUsersBlogs
Parameters:
|
array |
$params: |
Contains application key (ignored), username, and password |
metaweblog_editPost [line 860]
void metaweblog_editPost(
array $params
)
|
|
metaWeblog.editPost
Parameters:
|
array |
$params: |
Contains post id, user, password, content and publish |
metaweblog_getCategories [line 1015]
void metaweblog_getCategories(
array $params
)
|
|
metaWeblog.getCategories
Parameters:
|
array |
$params: |
Contains blog id, username, password |
metaweblog_getPost [line 906]
void metaweblog_getPost(
array $params
)
|
|
metaWeblog.getPost
Parameters:
|
array |
$params: |
Contains post id, username, password |
metaweblog_getRecentPosts [line 944]
void metaweblog_getRecentPosts(
array $params
)
|
|
metaWeblog.getRecentPosts
Parameters:
|
array |
$params: |
Contains blog id, username, password, and number of posts |
metaweblog_newMediaObject [line 1053]
void metaweblog_newMediaObject(
array $params
)
|
|
metaWeblog.newMediaObject
Parameters:
|
array |
$params: |
Contains blog id, username, password and file |
metaweblog_newPost [line 796]
void metaweblog_newPost(
array $params
)
|
|
metaWeblog.newPost
Parameters:
|
array |
$params: |
Contains blog id, username, password, content, and publish status. |
newPost [line 424]
void newPost(
array $params
)
|
|
blogger.newPost
Parameters:
|
array |
$params: |
Contains application key (ignored), blog id, username, password, content, and publish status (ignored). |
pivotx_delete_post [line 381]
void pivotx_delete_post(
string $postid
)
|
|
Deletes a post.
Parameters:
pivotx_get_blog_cats [line 113]
array pivotx_get_blog_cats(
string $blogid
)
|
|
Creates a list of categories (with description and more properties) for the given blog ID.
Parameters:
pivotx_get_post [line 259]
array pivotx_get_post(
string $postid
)
|
|
Get a specific post.
Parameters:
Information Tags:
| Todo: | Fix links (use functions). Add user check? |
pivotx_get_userid [line 81]
array pivotx_get_userid(
string $user, string $pass
)
|
|
Checks username and password, and return an array with the userid (uid) and potentially an error (err).
Parameters:
|
string |
$user: |
|
|
string |
$pass: |
|
pivotx_get_user_blogs [line 136]
array pivotx_get_user_blogs(
string $uid
)
|
|
Finds the list of blogs (without checking the user permissions).
Parameters:
pivotx_new_post [line 294]
int pivotx_new_post(
string $uid, string $title, string $body, string $categories
)
|
|
Creates a new post and returns the code for that entry,.
Parameters:
|
string |
$uid: |
|
|
string |
$title: |
|
|
string |
$body: |
|
|
string |
$categories: |
|
pivotx_post_exists [line 180]
boolean pivotx_post_exists(
string $postid
)
|
|
Determines if a post exists.
Parameters:
pivotx_recent [line 216]
array pivotx_recent(
string $blogid, string $num
)
|
|
Finds recent posts in the given blog.
Parameters:
|
string |
$blogid: |
|
|
string |
$num: |
|
pivotx_update_post [line 341]
void pivotx_update_post(
string $uid, string $postid, string $title, string $content, [array $categories = '']
)
|
|
Updates a post.
Parameters:
|
string |
$uid: |
|
|
string |
$postid: |
|
|
string |
$title: |
|
|
string |
$content: |
|
|
array |
$categories: |
|
pivotx_user_blog_check [line 161]
boolean pivotx_user_blog_check(
string $uid, string $blogid
)
|
|
Determines if a user can post to a given blog (at all) by checking all permissions for all categories.
Parameters:
|
string |
$uid: |
|
|
string |
$blogid: |
|
pivotx_user_info [line 396]
array pivotx_user_info(
string $uid
)
|
|
Returns info about user.
Parameters:
Information Tags:
| Todo: | Fetch more info (if possible) from global $PIVOTX array. |
pivotx_user_post_check [line 199]
boolean pivotx_user_post_check(
string $uid, string $postid
)
|
|
Determines if a user has access to a given post.
Parameters:
|
string |
$uid: |
|
|
string |
$postid: |
|
Information Tags:
| Todo: | Check if user is administrator or super-user. |
setTemplate [line 778]
void setTemplate(
array $params
)
|
|
blogger.getTemplate
We don't support template editing, so we just return an error.
Parameters:
|
array |
$params: |
Contains application key, blog id, username, password, template, and type |
|
|